summaryrefslogtreecommitdiff
path: root/.zshenv
diff options
context:
space:
mode:
Diffstat (limited to '.zshenv')
-rw-r--r--.zshenv13
1 files changed, 12 insertions, 1 deletions
diff --git a/.zshenv b/.zshenv
index 7cd008d..8d18e93 100644
--- a/.zshenv
+++ b/.zshenv
@@ -1,5 +1,16 @@
+# Environment functions
+appendpath () {
+ case ":$PATH:" in
+ *:"$1":*)
+ ;;
+ *)
+ PATH="${PATH:+$PATH:}$1"
+ esac
+}
+
# Setup environment
-export PATH="$PATH:/home/dholman/bin"
+appendpath '/home/dholman/bin'
+export PATH
export EDITOR="vim"
export SUDO_EDITOR="vim"
export SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0