From 9581099734431233e0ddd28879828df278270fde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82azie=C5=84ski?= Date: Mon, 14 Jan 2019 21:06:37 +0100 Subject: [PATCH] Show dots when doing tab completion --- zshrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 7c5747f..d9e3db5 100644 --- a/zshrc +++ b/zshrc @@ -459,8 +459,15 @@ bindkey "\e[H" beginning-of-line bindkey "\e[F" end-of-line # Tab completion +expand-or-complete-with-indicator() { + print -Pn "%{%F{red}...%f%}" + zle expand-or-complete + zle redisplay +} +zle -N expand-or-complete-with-indicator +bindkey "^I" expand-or-complete-with-indicator + bindkey "^r" history-incremental-search-backward -bindkey '^i' complete-word # tab to do menu bindkey "\e[Z" reverse-menu-complete # shift-tab to reverse menu # Up/down arrow.