[[ -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'
+