You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
632 B
Bash
32 lines
632 B
Bash
#!/usr/bin/env bash
|
|
|
|
function add-path {
|
|
dir="$1"
|
|
if [[ $PATH =~ "$dir" ]]; then
|
|
return
|
|
fi
|
|
if [[ -d $dir ]]; then
|
|
PATH=$dir:$PATH
|
|
fi
|
|
}
|
|
|
|
add-path ~/.cargo/bin
|
|
add-path ~/go/bin
|
|
add-path /var/lib/gems/1.8/bin
|
|
add-path /Library/Frameworks/Python.framework/Versions/2.7/bin
|
|
add-path ~/Library/Python/2.7/bin
|
|
add-path ~/.rvm/bin
|
|
add-path ~/opt/bin
|
|
add-path /usr/local/mysql/bin
|
|
add-path /opt/vertica/bin
|
|
add-path /opt/local/bin
|
|
add-path /opt/local/sbin
|
|
add-path ~/bin
|
|
add-path /usr/local/go/bin
|
|
add-path ~/.bin
|
|
add-path ~/opt/depot_tools
|
|
add-path ~/.yarn/bin
|
|
add-path ~/.local/bin
|
|
|
|
unset -f add-path
|