addpath — adds a list of directories to $PATH
, checks for duplicates and
removes empty paths.
-
Clone and build
-
Add the following line to your
~/.bash_profile
:export PATH="`addpath`"
You can either provide a full path to binary in
.bash_profile
or create a symlink from a location already available is$PATH
-
Add entries in
~/.addpath
:cat << EOF > ~/.addpath /opt/some/software/bin /home/user/.cargo/bin EOF
-
You may need to log out of your session and log in again to see changes.