fixed a small bug in the plugin

This commit is contained in:
Julian Vetter 2014-08-12 10:43:15 +02:00
parent 3e10b5a0cd
commit 111c164ec5

View File

@ -17,11 +17,8 @@
function _term_list(){ function _term_list(){
local -a w local -a w
for SESSION in $(ps -eo pid,fname | grep zsh | awk '{print $1}'); do for SESSION in $(pidof zsh); do
SPATH="$(readlink -n /proc/${SESSION}/cwd)" w+=$(readlink -n /proc/${SESSION}/cwd)
if [ x != x${SPATH} ]; then
w+=${SPATH}
fi
done done
compadd -a w compadd -a w