]> git.vanrenterghem.biz Git - Dotty.git/blobdiff - bash/.bashrc
Keep a history of commands etc.
[Dotty.git] / bash / .bashrc
index 141a601122d61ac62efb989c2855eea7999b71a0..5a379c71aab3b09f6a2c2469539f6b2f8ac0a361 100644 (file)
@@ -31,3 +31,22 @@ export PYENV_ROOT="$HOME/.pyenv"
 [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
 eval "$(pyenv init -)"
 
 [[ -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"
+
+
+