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)
downloadnixfiles-3d9fbb2a793e60a503692e000cae19d7ef96fa54.tar.lz
nixfiles-3d9fbb2a793e60a503692e000cae19d7ef96fa54.tar.zst
nixfiles-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 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