From 642dc80b30610a45455d5954fb31cf5a65f071d8 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 24 Jul 2010 11:03:48 +0200 Subject: [PATCH] zsh/rc: Add fallback completer to ^F which always completes files. --- zsh/rc | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.45.2