X-Git-Url: http://git.vanrenterghem.biz/Dotty.git/blobdiff_plain/7c78873708b5e939ca947188dd9abe6187d31be5..a296bb8875b5c47556ddfc451a3def0ee54a0f25:/bash/.bashrc diff --git a/bash/.bashrc b/bash/.bashrc index 3b7c8b6..5a379c7 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -21,3 +21,32 @@ fi export GPG_TTY=$(tty) gpg-connect-agent updatestartuptty /bye >/dev/null +[ -n "$DISPLAY" ] && export BROWSER=firefox || export BROWSER=w3m + +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" + + +