aboutsummaryrefslogtreecommitdiff
path: root/files/.zsh/rc
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2022-11-27 16:28:53 +0100
committerAnton Bobov <anton@bobov.name>2022-11-27 16:28:53 +0100
commit567fbc6b45e9cbd51dfd405d8b21cd44c1d501d5 (patch)
tree19b9eeb08ad02321a89f2f4cb5091cfb4aa0aad7 /files/.zsh/rc
parentb7d338b6c02b62619d4e77807483ca33f04516bc (diff)
zsh: update completion
Diffstat (limited to 'files/.zsh/rc')
-rw-r--r--files/.zsh/rc/S50_functions3
1 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