X-Git-Url: http://git.vanrenterghem.biz/Dotty.git/blobdiff_plain/47c1807556e857219c451484b873e7656b9b1a32..6195472824041191c17ac2bcb9f0f8fe43e651eb:/bash/.bashrc diff --git a/bash/.bashrc b/bash/.bashrc index b0e4bab..5a379c7 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -25,3 +25,28 @@ gpg-connect-agent updatestartuptty /bye >/dev/null source /etc/profile.d/nix-daemon.sh export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive + +# Initialise pyenv +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' + +# Emacs eat shell integration +[ -n "$EAT_SHELL_INTEGRATION_DIR" ] && \ + source "$EAT_SHELL_INTEGRATION_DIR/bash" + + +