From 567fbc6b45e9cbd51dfd405d8b21cd44c1d501d5 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Sun, 27 Nov 2022 16:28:53 +0100 Subject: zsh: update completion --- files/.zsh/rc/S50_functions | 3 ++- files/.zsh/zsh-completions | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'files') 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 index 57330ba..a09284a 160000 --- a/files/.zsh/zsh-completions +++ b/files/.zsh/zsh-completions @@ -1 +1 @@ -Subproject commit 57330ba11b1d10ba6abba35c2d79973834fb65a6 +Subproject commit a09284a73443d4a0288c5a984c5adb5f55ace520 -- cgit v1.2.3