diff --git a/zsh/.zshrc b/zsh/.zshrc index 72a6f81..971f1ca 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -17,17 +17,23 @@ for file in $ZDOTDIR/libs/*.zsh; do source "$file"; done for file in $ZDOTDIR/plgs/*.zsh; do source "$file"; done if [[ $os == "arch" ]]; then - source $fzf/completion.zsh - source $fzf/key-bindings.zsh - source $share/doc/pkgfile/command-not-found.zsh -else - if [[ $os == "debian" || $os == "ubuntu" ]]; then - source $share/doc/fzf/examples/key-bindings.zsh - else - source $share/fzf/shell/key-bindings.zsh - fi + fzfComp="/usr/share/fzf/completion.zsh" + fzfKeyb="/usr/share/fzf/key-bindings.zsh" fi +if [[ $os == "debian" || $os == "ubuntu" ]]; then + fzfComp="/usr/share/doc/fzf/examples/completion.zsh" + fzfKeyb="/usr/share/doc/fzf/examples/key-bindings.zsh" +fi + +if [[ $os == "fedora" ]]; then + fzfComp="" + fzfKeyb="/usr/share/fzf/shell/key-bindings.zsh" +fi + +source $fzfComp &>/dev/null +source $fzfKeyb + source $ZDOTDIR/tmux/tmux.zsh [[ ! -f $ZDOTDIR/.p10k.zsh ]] || source $ZDOTDIR/.p10k.zsh