fixed a small bug in the plugin
This commit is contained in:
parent
3e10b5a0cd
commit
111c164ec5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user