diff --git a/zsh/plgs/fzf.zsh b/zsh/plgs/fzf.zsh new file mode 100644 index 0000000..8041073 --- /dev/null +++ b/zsh/plgs/fzf.zsh @@ -0,0 +1,19 @@ +fzfComp="" +fzfKeyb="" + +if [[ $os == "arch" ]]; then + 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 + fzfKeyb="/usr/share/fzf/shell/key-bindings.zsh" +fi + +source $fzfComp &>/dev/null +source $fzfKeyb &>/dev/null