From: Alexander Barton Date: Mon, 11 May 2015 15:27:27 +0000 (+0200) Subject: "1_local": Update PATH to include directories inside of $HOME X-Git-Url: https://arthur.barton.de/gitweb/?p=OhMyZshExtensions.git;a=commitdiff_plain;h=8ebea3003a92af49f18194c4784be870f624d44a "1_local": Update PATH to include directories inside of $HOME --- 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