aboutsummaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2020-03-08 18:29:16 +0000
committerYann Herklotz <git@yannherklotz.com>2020-03-08 18:29:16 +0000
commit009174919698505e35100f621b9015f779de5e96 (patch)
tree2be9070a9858caa8e12014710c22cd8480874800 /zsh
parent82c8274ebcb257866ab177c3528fcdae1978c9c2 (diff)
downloaddotfiles-009174919698505e35100f621b9015f779de5e96.tar.gz
dotfiles-009174919698505e35100f621b9015f779de5e96.zip
Add emacs support for mac
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc20
1 files changed, 11 insertions, 9 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 9c02e6a..b854793 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -23,17 +23,19 @@ setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_FIND_NO_DUPS
-(cat ~/.cache/wal/sequences &)
+if [ -d ~/.cache/wal ]; then
+ (cat ~/.cache/wal/sequences &)
+fi
# Sourcing everything
-source /usr/share/fzf/key-bindings.zsh
-source /usr/share/fzf/completion.zsh
-source $HOME/.zsh/export.zsh
-source $HOME/.zsh/minimal.zsh
-source $HOME/.zsh/function.zsh
-source $HOME/.zsh/startup.zsh
-source $HOME/.zsh/zsh-history-substring-search/zsh-history-substring-search.zsh
-source $HOME/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
+if [ -e /usr/share/fzf/key-bindings.zsh ]; then source /usr/share/fzf/key-bindings.zsh; fi
+if [ -e /usr/share/fzf/completion.zsh ]; then source /usr/share/fzf/completion.zsh; fi
+if [ -e $HOME/.zsh/export.zsh ]; then source $HOME/.zsh/export.zsh; fi
+if [ -e $HOME/.zsh/minimal.zsh ]; then source $HOME/.zsh/minimal.zsh; fi
+if [ -e $HOME/.zsh/function.zsh ]; then source $HOME/.zsh/function.zsh; fi
+if [ -e $HOME/.zsh/startup.zsh ]; then source $HOME/.zsh/startup.zsh; fi
+if [ -e $HOME/.zsh/zsh-history-substring-search/zsh-history-substring-search.zsh ]; then source $HOME/.zsh/zsh-history-substring-search/zsh-history-substring-search.zsh; fi
+if [ -e $HOME/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh ]; then source $HOME/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh; fi
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
bindkey -M emacs '^P' history-substring-search-up