diff options
author | David Runge <david.runge@frqrec.com> | 2014-04-08 18:19:42 +0200 |
---|---|---|
committer | David Runge <david.runge@frqrec.com> | 2014-04-08 18:19:42 +0200 |
commit | 3877496da00a4b8a5e0c4b0f0ab117d94f7e8e5a (patch) | |
tree | 1b7e05bf794bf96afa51f0d31c0c7cf481450d9d | |
parent | ec2ff4b798294fc1e2e2fec6c41d3399d9be3d22 (diff) | |
download | dotfiles-3877496da00a4b8a5e0c4b0f0ab117d94f7e8e5a.tar.gz dotfiles-3877496da00a4b8a5e0c4b0f0ab117d94f7e8e5a.tar.bz2 dotfiles-3877496da00a4b8a5e0c4b0f0ab117d94f7e8e5a.tar.xz dotfiles-3877496da00a4b8a5e0c4b0f0ab117d94f7e8e5a.zip |
Adding bin folder before /usr/bin/local
-rw-r--r-- | .zsh.before/path.zsh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.zsh.before/path.zsh b/.zsh.before/path.zsh index f463e69..9b1579f 100644 --- a/.zsh.before/path.zsh +++ b/.zsh.before/path.zsh @@ -1,5 +1,5 @@ # < BEFORE $PATH -PATH=$HOME/bin:$PATH +#PATH=$HOME/bin:$PATH # > BEFORE # < AFTER $PATH @@ -14,6 +14,13 @@ PATH=$HOME/bin:$PATH ## RVM PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting + +# replace /usr/local/bin once with $HOME/bin:/usr/local/bin in $PATH +autoload -U regexp-replace +if [[ "$PATH" != *dave/bin:/usr/local/sbin* ]];then + regexp-replace PATH '/usr/local/bin:' '$HOME/bin:/usr/local/sbin:' +fi + ## RASPBERRY PI if [[ "$HOST" == *pitheunlord* ]]; then PATH=$PATH:"/opt/vc/bin:/opt/vc/sbin" |