From c508d215e3128993dd4352d209ebe48a5fb506a6 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 20 Mar 2012 20:52:42 -0400 Subject: [PATCH] Shorten expand-or-complete-prefix-with-indicator --- keyboard.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keyboard.zsh b/keyboard.zsh index a5d38085..789f09df 100644 --- a/keyboard.zsh +++ b/keyboard.zsh @@ -106,14 +106,14 @@ function expand-dot-to-parent-directory-path() { zle -N expand-dot-to-parent-directory-path # Displays an indicator when completing. -function expand-or-complete-prefix-with-indicator() { +function expand-or-complete-with-indicator() { local indicator zstyle -s ':omz:completion' indicator 'indicator' print -Pn "$indicator" zle expand-or-complete-prefix zle redisplay } -zle -N expand-or-complete-prefix-with-indicator +zle -N expand-or-complete-with-indicator # Inserts 'sudo ' at the beginning of the line. function prepend-sudo() { @@ -296,7 +296,7 @@ for keymap in 'emacs' 'viins'; do # Display an indicator when completing. [[ -n "$keyinfo[Control]" ]] && \ bindkey -M "$keymap" "$keyinfo[Control]I" \ - expand-or-complete-prefix-with-indicator + expand-or-complete-with-indicator # Insert 'sudo ' at the beginning of the line. [[ -n "$keyinfo[Control]" ]] && \