Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export PATH="/usr/local/bin:$PATh"
- export PATH="/usr/local/bin:$PATH"
- usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:
- $ /bin/bash ./.profile
- /usr/bin/vi ~/.bash_profile
- vipath() {
- local tmpfile=$(mktemp /tmp/vipath-edit.XXXXXX)
- echo "$PATH" | tr ':' 'n' > "$tmpfile"
- vi "$tmpfile" && PATH=$(paste -s -d ':' "$tmpfile")
- rm "$tmpfile"
- }
- pathadd() {
- if [ -d "$1" ] && [[ ! ":$PATH:" =~ ":$1:" ]]
- then
- PATH="$1:$PATH"
- fi
- }
Add Comment
Please, Sign In to add comment