From: Simon Ruderich Date: Sat, 24 Jul 2010 09:03:48 +0000 (+0200) Subject: zsh/rc: Add fallback completer to ^F which always completes files. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=642dc80b30610a45455d5954fb31cf5a65f071d8;p=config%2Fdotfiles.git zsh/rc: Add fallback completer to ^F which always completes files. --- diff --git a/zsh/rc b/zsh/rc index 5e97bea..bda2c6e 100644 --- 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 +# (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