zsh: fix whed function
This commit is contained in:
parent
16042bfda5
commit
2cb32e39c3
|
@ -82,5 +82,6 @@ function togglefg () {
|
|||
zle -N togglefg
|
||||
|
||||
function whed() {
|
||||
[ -e "$1" ] && $EDITOR $(which "$1")
|
||||
script=$(which "$1")
|
||||
[ -e "$script" ] && $EDITOR $(which "$script")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue