From e2c777e1e3969da4672b0ceeeedf4a63cb54bee4 Mon Sep 17 00:00:00 2001 From: Julian Vetter Date: Mon, 10 Nov 2014 14:49:26 +0100 Subject: [PATCH] * Fixed a small bug in the substitution. Now it should work as intended, * and play nicely with the normal tab completion --- plugins/term_tab/term_tab.plugin.zsh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/term_tab/term_tab.plugin.zsh b/plugins/term_tab/term_tab.plugin.zsh index a497f738..2ec04419 100644 --- a/plugins/term_tab/term_tab.plugin.zsh +++ b/plugins/term_tab/term_tab.plugin.zsh @@ -18,13 +18,12 @@ function _term_list(){ local -a w for SESSION in $(pidof zsh); do - PA=$(readlink -n /proc/${SESSION}/cwd) - w+=(${(D)PA}) + w+=${(D)$(readlink -n /proc/${SESSION}/cwd)} done compadd -aQ w } -zle -C term_list complete-word _generic +zle -C term_list menu-complete _generic bindkey "^v" term_list zstyle ':completion:term_list:*' completer _term_list