]> arthur.barton.de Git - ax-zsh.git/commitdiff
fzf: Update plugin to work on Fedora 35
authorAlexander Barton <alex@barton.de>
Fri, 10 Dec 2021 22:18:23 +0000 (23:18 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 10 Dec 2021 22:18:23 +0000 (23:18 +0100)
plugins/fzf/fzf.zshrc

index 95c6ff8d0a3141877b9b93a5d549c150a88c1635..526b5bea360a915dbbc8c3bb9708f631f7c64cdb 100644 (file)
@@ -30,9 +30,10 @@ for dir (
        /usr/local/opt/fzf/shell
        /usr/local/share/examples/fzf/shell
        /opt/fzf/shell
+       /usr/share/fzf/shell
 ); do
        [[ -d "$dir" ]] || continue
-       source "$dir/completion.zsh"
+       [[ -r "$dir/completion.zsh" ]] && source "$dir/completion.zsh"
        source "$dir/key-bindings.zsh"
        return 0
 done