diff options
| author | Anton Bobov <anton@bobov.name> | 2022-11-27 16:28:53 +0100 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2022-11-27 16:28:53 +0100 |
| commit | 567fbc6b45e9cbd51dfd405d8b21cd44c1d501d5 (patch) | |
| tree | 19b9eeb08ad02321a89f2f4cb5091cfb4aa0aad7 | |
| parent | b7d338b6c02b62619d4e77807483ca33f04516bc (diff) | |
zsh: update completion
| -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 |
