mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
* 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
1 changed files with 2 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue