From 09289c59a58ba03d80ab34ad3e68295e2abed58e Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 9 Apr 2014 17:15:49 +0200 Subject: [PATCH] bin/autojump.zsh: only add existing dirs With a custom install method (e.g. checkout in ~/.autojump), ~/.autojump/functions will not be present. --- bin/autojump.zsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/autojump.zsh b/bin/autojump.zsh index c3008c1..e4801e4 100644 --- a/bin/autojump.zsh +++ b/bin/autojump.zsh @@ -1,7 +1,9 @@ # set user installation paths -if [[ -d ~/.autojump ]]; then +if [[ -d ~/.autojump/bin ]]; then path=(~/.autojump/bin ${path}) - fpath=(~/.autojump/functions/ ${fpath}) +fi +if [[ -d ~/.autojump/functions ]]; then + fpath=(~/.autojump/functions ${fpath}) fi