]> git.vanrenterghem.biz Git - Dotty.git/blobdiff - bash/.bashrc
Set PATH (more...) sanely and use XFCE4.
[Dotty.git] / bash / .bashrc
index 9fa83b575e9327947ca369846cc81d758498bf8c..f1859838ae2148e4049788cf3701b0fa44b4febc 100644 (file)
@@ -22,3 +22,25 @@ 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'
+