]> arthur.barton.de Git - OhMyZshExtensions.git/blobdiff - plugins/1_local/1_local.plugin.zsh
"1_local": Update PATH to include directories inside of $HOME
[OhMyZshExtensions.git] / 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"
+
+# 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