From 8ebea3003a92af49f18194c4784be870f624d44a Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 11 May 2015 17:27:27 +0200 Subject: [PATCH] "1_local": Update PATH to include directories inside of $HOME --- plugins/1_local/1_local.plugin.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/1_local/1_local.plugin.zsh b/plugins/1_local/1_local.plugin.zsh index 537f294..d64845d 100644 --- a/plugins/1_local/1_local.plugin.zsh +++ b/plugins/1_local/1_local.plugin.zsh @@ -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 -- 2.39.2