X-Git-Url: http://git.vanrenterghem.biz/Dotty.git/blobdiff_plain/71595397830d488b1488785a1dabc81db82b57eb..708aef6d49a41f614fd0a03c3711d01dca22adde:/bash/.bashrc?ds=sidebyside diff --git a/bash/.bashrc b/bash/.bashrc index 141a601..f185983 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -31,3 +31,16 @@ export PYENV_ROOT="$HOME/.pyenv" [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" +# Append "$1" to $PATH when not already in. +append_path () { + case ":$PATH:" in + *:"$1":*) + ;; + *) + PATH="${PATH:+$PATH:}$1" + esac +} + +# Append our default paths +append_path '/home/frederik/scripts' +