X-Git-Url: http://git.vanrenterghem.biz/Dotty.git/blobdiff_plain/4779acb056bafd13c5a99ab9b94d753fe98b5bc8..22c7b5d659e1dc66aac094456af47ed5445c2075:/bash/.bashrc diff --git a/bash/.bashrc b/bash/.bashrc index 12b5184..5a379c7 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -31,4 +31,22 @@ export PYENV_ROOT="$HOME/.pyenv" [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" -export PATH="$PATH:$HOME/scripts" +# 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' + +# Emacs eat shell integration +[ -n "$EAT_SHELL_INTEGRATION_DIR" ] && \ + source "$EAT_SHELL_INTEGRATION_DIR/bash" + + +