https://github.com/vlad-ivanov-name/addpath
addpath — adds folders to $PATH
https://github.com/vlad-ivanov-name/addpath
bash-profile environment-variables linux rust
Last synced: 2 months ago
JSON representation
addpath — adds folders to $PATH
- Host: GitHub
- URL: https://github.com/vlad-ivanov-name/addpath
- Owner: vlad-ivanov-name
- License: mit
- Created: 2017-04-21T18:53:04.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-21T19:06:51.000Z (about 9 years ago)
- Last Synced: 2025-07-18T23:38:19.548Z (11 months ago)
- Topics: bash-profile, environment-variables, linux, rust
- Language: Rust
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# addpath
addpath — adds a list of directories to `$PATH`, checks for duplicates and
removes empty paths.
## Usage
1. Clone and build
1. Add the following line to your `~/.bash_profile`:
```bash
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`
1. Add entries in `~/.addpath`:
```bash
cat << EOF > ~/.addpath
/opt/some/software/bin
/home/user/.cargo/bin
EOF
```
1. You may need to log out of your session and log in again to see
changes.