Mercurial > dotfiles
comparison .zsh/00.path_manipulation.zsh @ 17:cb2b2943221d
Stop mentioning this because it makes shelling out in emacs annoying.
| author | Augie Fackler <durin42@gmail.com> |
|---|---|
| date | Fri, 05 Dec 2008 11:30:15 -0600 |
| parents | c30d68fbd368 |
| children |
comparison
equal
deleted
inserted
replaced
| 16:0de17fe9c428 | 17:cb2b2943221d |
|---|---|
| 1 # Functions for manipulating $PATH. Split out so I can use them in .zshenv if I want. | 1 # Functions for manipulating $PATH. Split out so I can use them in .zshenv if I want. |
| 2 | 2 |
| 3 function insert_path_element() { | 3 function insert_path_element() { |
| 4 if echo "$PATH" | grep "$1:" >> /dev/null; then | 4 if echo "$PATH" | grep "$1:" >> /dev/null; then |
| 5 echo $1 already in path | 5 true |
| 6 else | 6 else |
| 7 export PATH="$1:$PATH" | 7 export PATH="$1:$PATH" |
| 8 fi | 8 fi |
| 9 } | 9 } |
| 10 | 10 |
