* 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
|
local -a w
|
||||||
|
|
||||||
for SESSION in $(pidof zsh); do
|
for SESSION in $(pidof zsh); do
|
||||||
PA=$(readlink -n /proc/${SESSION}/cwd)
|
w+=${(D)$(readlink -n /proc/${SESSION}/cwd)}
|
||||||
w+=(${(D)PA})
|
|
||||||
done
|
done
|
||||||
|
|
||||||
compadd -aQ w
|
compadd -aQ w
|
||||||
}
|
}
|
||||||
|
|
||||||
zle -C term_list complete-word _generic
|
zle -C term_list menu-complete _generic
|
||||||
bindkey "^v" term_list
|
bindkey "^v" term_list
|
||||||
zstyle ':completion:term_list:*' completer _term_list
|
zstyle ':completion:term_list:*' completer _term_list
|
||||||
|
Loading…
Reference in New Issue
Block a user