zsh: fix whed function
This commit is contained in:
parent
0171baf659
commit
ab50b46751
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue