]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/lib/fzf.zsh
mpv: don't ignore vp9 codecs
[dotfiles.git] / zsh / lib / fzf.zsh
index fdeb0b858003d89fd9c65af9bac50877b1de75ac..b9188d6189e459fd90915a55a41bee12813c00f8 100755 (executable)
@@ -1,4 +1,4 @@
-if [[ ! -x /usr/bin/fzf ]]; then
+if ! hash fzf 2>/dev/null; then
     echo '`fzf` is not installed.'
     return
 fi
     echo '`fzf` is not installed.'
     return
 fi
@@ -47,7 +47,7 @@ bindkey '^T' fzf-file-widget
 
 # ALT-C - cd into the selected directory
 fzf-cd-widget() {
 
 # ALT-C - cd into the selected directory
 fzf-cd-widget() {
-  cd "${$(command find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
+  cd "${$(command find -L . -xdev \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
     -o -type d -print 2> /dev/null | sed 1d | cut -b3- | fzf +m):-.}"
   zle reset-prompt
 }
     -o -type d -print 2> /dev/null | sed 1d | cut -b3- | fzf +m):-.}"
   zle reset-prompt
 }