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(){
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