"1_local": Update PATH to include directories inside of $HOME
authorAlexander Barton <alex@barton.de>
Mon, 11 May 2015 15:27:27 +0000 (17:27 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 11 May 2015 15:27:27 +0000 (17:27 +0200)
plugins/1_local/1_local.plugin.zsh

index 537f294eadf3b362f163b8a3048bf7a79bb6781c..d64845d1c31679d7d23187e1361bb2055752e9e5 100644 (file)
@@ -10,3 +10,9 @@
 
 # Setup XDG cache directory
 export XDG_CACHE_HOME="$LOCAL_HOME/.cache"
 
 # Setup XDG cache directory
 export XDG_CACHE_HOME="$LOCAL_HOME/.cache"
+
+# Update PATH to include directories inside of the $HOME directory
+typeset -U path
+for d in ~/bin ~/sbin ~/Applications; do
+       [ -d "$d" ] && path[1,0]="$d"
+done