* Fixed a small bug in the substitution. Now it should work as intended,
* and play nicely with the normal tab completion
This commit is contained in:
parent
bf0e8c4628
commit
e2c777e1e3
@ -18,13 +18,12 @@ function _term_list(){
|
||||
local -a w
|
||||
|
||||
for SESSION in $(pidof zsh); do
|
||||
PA=$(readlink -n /proc/${SESSION}/cwd)
|
||||
w+=(${(D)PA})
|
||||
w+=${(D)$(readlink -n /proc/${SESSION}/cwd)}
|
||||
done
|
||||
|
||||
compadd -aQ w
|
||||
}
|
||||
|
||||
zle -C term_list complete-word _generic
|
||||
zle -C term_list menu-complete _generic
|
||||
bindkey "^v" term_list
|
||||
zstyle ':completion:term_list:*' completer _term_list
|
||||
|
Loading…
Reference in New Issue
Block a user