blob: ed9dbac8c1fb49a63f15e001a2b2ca2906b2df99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# vi:filetype=sh
function appendpath() {
local regex="[:^]${1//'/'/'\/'}[:$]"
echo $regex
if [[ ! ${PATH} =~ $regex ]]; then
PATH=$PATH:$1
fi
}
appendpath "$HOME/bin"
appendpath "$DOTFILEBASE/scripts"
export PATH
unset appendpath
export EDITOR=vim
|