mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
fixed a small bug in the plugin
This commit is contained in:
parent
3e10b5a0cd
commit
111c164ec5
1 changed files with 2 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue