diff options
| -rw-r--r-- | files/.zsh/rc/S50_functions | 3 | ||||
| m--------- | files/.zsh/zsh-completions | 0 |
2 files changed, 2 insertions, 1 deletions
diff --git a/files/.zsh/rc/S50_functions b/files/.zsh/rc/S50_functions index 12611c2..4129fd6 100644 --- a/files/.zsh/rc/S50_functions +++ b/files/.zsh/rc/S50_functions @@ -73,7 +73,8 @@ activate_virtualenv() { } edit-which() { - $EDITOR $(which "$@") + command=$(which "$@") + [ -x "$command" ] && $EDITOR "$command" } compdef edit-which=which diff --git a/files/.zsh/zsh-completions b/files/.zsh/zsh-completions -Subproject 57330ba11b1d10ba6abba35c2d79973834fb65a +Subproject a09284a73443d4a0288c5a984c5adb5f55ace52 |
