From ef02a3dfe2e930697b2284e2680ded4421842e58 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Mon, 15 Aug 2022 14:17:03 -0500 Subject: [PATCH] Updated some things for my Debian homecoming --- zsh/.zshrc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 4b1dacf..a882dd4 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -13,12 +13,21 @@ eval `dircolors $HOME/.dircolors` # TODO: Could set the base directory and source the zsh stuff if [[ `uname` == Darwin ]]; then + # macOS # Run this to generate ~/.fzf.zsh: $(brew --prefix)/opt/fzf/install [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh source /opt/homebrew/share/zsh-history-substring-search/zsh-history-substring-search.zsh source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh -else +elif command -v apt &> /dev/null; then + # Debian + source /usr/share/doc/fzf/examples/completion.zsh + source /usr/share/doc/fzf/examples/key-bindings.zsh + + source /usr/share/zsh-history-substring-search/zsh-history-substring-search.zsh + source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +elif command -v pacman &> /dev/null; then + # Arch source /usr/share/fzf/completion.zsh source /usr/share/fzf/key-bindings.zsh