mirror of
https://github.com/correl/dotfiles.git
synced 2024-12-19 19:14:14 +00:00
19 lines
416 B
Text
19 lines
416 B
Text
|
#!/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 $@
|
||
|
}
|