mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-24 19:19:52 +00:00
18 lines
416 B
Bash
18 lines
416 B
Bash
#!/bin/bash
|
|
set +e
|
|
|
|
function _path_low {
|
|
PATH="$1:$PATH"
|
|
test -r ~/.bash_profile && echo "export PATH='$1'":'"$PATH"' >>~/.bash_profile
|
|
echo "export PATH='$1'":'"$PATH"' >>~/.profile
|
|
}
|
|
|
|
function _path_high {
|
|
PATH="$PATH:$1"
|
|
test -r ~/.bash_profile && echo 'export PATH="$PATH"':"'$PATH'" >>~/.bash_profile
|
|
echo "export PATH='$1'":'"$PATH"' >>~/.profile
|
|
}
|
|
|
|
function _path {
|
|
_path_low $@
|
|
}
|