]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: Add fallback completer to ^F which always completes files.
authorSimon Ruderich <simon@ruderich.org>
Sat, 24 Jul 2010 09:03:48 +0000 (11:03 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 24 Jul 2010 09:03:48 +0000 (11:03 +0200)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index 5e97beaab4604277f660124c9c5499c3e5e50689..bda2c6e347fb38ecec97af7e38cc67b3e805d4b6 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -487,6 +487,13 @@ zstyle ':completion:*' ignore-line yes
 # complete to the same and change it.
 zstyle ':completion:*:(mv|cp):*' ignore-line no
 
+# Provide a fallback completer which always completes files. Useful when Zsh's
+# completion is too "smart". Thanks to Frank Terbeck <ft@bewatermyfriend.org>
+# (http://www.zsh.org/mla/users/2009/msg01038.html).
+zle -C complete-files complete-word _generic
+zstyle ':completion:complete-files:*' completer _files
+bindkey '^F' complete-files
+
 
 # CUSTOM ALIASES AND FUNCTIONS