From 111c164ec51070867fdc2a2668c37c0b68fc80a7 Mon Sep 17 00:00:00 2001 From: Julian Vetter Date: Tue, 12 Aug 2014 10:43:15 +0200 Subject: [PATCH] fixed a small bug in the plugin --- plugins/term_tab/term_tab.plugin.zsh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/term_tab/term_tab.plugin.zsh b/plugins/term_tab/term_tab.plugin.zsh index 1c025721..be9514e4 100644 --- a/plugins/term_tab/term_tab.plugin.zsh +++ b/plugins/term_tab/term_tab.plugin.zsh @@ -17,11 +17,8 @@ function _term_list(){ local -a w - for SESSION in $(ps -eo pid,fname | grep zsh | awk '{print $1}'); do - SPATH="$(readlink -n /proc/${SESSION}/cwd)" - if [ x != x${SPATH} ]; then - w+=${SPATH} - fi + for SESSION in $(pidof zsh); do + w+=$(readlink -n /proc/${SESSION}/cwd) done compadd -a w