summary refs log tree commit diff stats
path: root/tag-zsh/config
diff options
context:
space:
mode:
authorAlan Pearce2014-06-01 14:21:06 +0100
committerAlan Pearce2014-06-01 14:21:06 +0100
commit3d9fbb2a793e60a503692e000cae19d7ef96fa54 (patch)
treee8ad610f12bd27e20350096d0868e425e89cbab6 /tag-zsh/config
parent8fc6d71a515a7023b3f9368242d624b60ba14159 (diff)
downloaddotfiles-3d9fbb2a793e60a503692e000cae19d7ef96fa54.tar.lz
dotfiles-3d9fbb2a793e60a503692e000cae19d7ef96fa54.tar.zst
dotfiles-3d9fbb2a793e60a503692e000cae19d7ef96fa54.zip
Zsh: hide error when fasd init file missing
Now show a warning instead
Diffstat (limited to 'tag-zsh/config')
-rwxr-xr-xtag-zsh/config/zsh/zshrc7
1 files changed, 6 insertions, 1 deletions
diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc
index 2681962..067c517 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