|Tomek Wójcik 293c75456e
pathsd is a small CLI utility to manage the
PATH enironment variable.
Building and installing
pathsd is written in Nim programming language. To build it, you need to install the compiler. Consult nim documentation for instructions on installing nim on your OS. The required version is 2.0.0 or newer.
To build pathsd, issue the following command:
The built binary will be placed in
build/pathsd. To install, copy it
pathsd requires at least one directory of parts to operate on, e.g.
Each of the files should have one or more lines, each line being a single
entry in the rendered
Running the program with such a directory would yield the following result:
$ pathsd paths.d/
export PATH="/Users/bilbo/opt/bin:/opt/homebrew/bin:/opt/homebrew/sbin":<paths inherited from $PATH>
You can specify multiple directories. They'll be processed one by one in the order specified on the command line.
The program is best used in your shell's startup file, e.g.
eval $(pathsd paths.d/)
At the time of writing, only
bash is supported.
pathsd is developed by Tomek Wójcik
pathsd is licensed under the MIT License.