From 3d9fbb2a793e60a503692e000cae19d7ef96fa54 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 1 Jun 2014 14:21:06 +0100 Subject: Zsh: hide error when fasd init file missing Now show a warning instead --- tag-zsh/config/zsh/zshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tag-zsh/config/zsh') diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc index 26819621..067c517d 100755 --- a/tag-zsh/config/zsh/zshrc +++ b/tag-zsh/config/zsh/zshrc @@ -356,7 +356,12 @@ ec () { _FASD_DATA="$HOME/.cache/zsh/fasd-data" autoload -U fasd -source ~/.cache/zsh/fasd-init-zsh +if [[ -e ~/.cache/zsh/fasd-init-zsh ]] +then + source ~/.cache/zsh/fasd-init-zsh +else + echo "fasd init file is missing." +fi if [[ $OSTYPE == freebsd* ]]; then source $ZDOTDIR/freebsd.zsh -- cgit 1.4.1