diff options
author | Alan Pearce | 2014-06-01 14:21:06 +0100 |
---|---|---|
committer | Alan Pearce | 2014-06-01 14:21:06 +0100 |
commit | 3d9fbb2a793e60a503692e000cae19d7ef96fa54 (patch) | |
tree | e8ad610f12bd27e20350096d0868e425e89cbab6 | |
parent | 8fc6d71a515a7023b3f9368242d624b60ba14159 (diff) | |
download | nixfiles-3d9fbb2a793e60a503692e000cae19d7ef96fa54.tar.lz nixfiles-3d9fbb2a793e60a503692e000cae19d7ef96fa54.tar.zst nixfiles-3d9fbb2a793e60a503692e000cae19d7ef96fa54.zip |
Zsh: hide error when fasd init file missing
Now show a warning instead
-rwxr-xr-x | tag-zsh/config/zsh/zshrc | 7 |
1 files changed, 6 insertions, 1 deletions
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 |