From bf0e8c4628ad2ce6015b2866b0241c5eaea94318 Mon Sep 17 00:00:00 2001 From: Julian Vetter Date: Mon, 10 Nov 2014 14:01:30 +0100 Subject: [PATCH] * Now substitution of the $HOME folder works (replaced by ~) --- plugins/term_tab/term_tab.plugin.zsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/term_tab/term_tab.plugin.zsh b/plugins/term_tab/term_tab.plugin.zsh index be9514e4..a497f738 100644 --- a/plugins/term_tab/term_tab.plugin.zsh +++ b/plugins/term_tab/term_tab.plugin.zsh @@ -18,10 +18,11 @@ function _term_list(){ local -a w for SESSION in $(pidof zsh); do - w+=$(readlink -n /proc/${SESSION}/cwd) + PA=$(readlink -n /proc/${SESSION}/cwd) + w+=(${(D)PA}) done - compadd -a w + compadd -aQ w } zle -C term_list complete-word _generic