From 3e33610840d7179ffb5bb263116833d059cb4d09 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 21 Mar 2023 18:42:17 -0700 Subject: [PATCH] minor update to zsh completion --- assets/shell-completion/zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/assets/shell-completion/zsh b/assets/shell-completion/zsh index e6eda8251..b6b2084bf 100644 --- a/assets/shell-completion/zsh +++ b/assets/shell-completion/zsh @@ -804,4 +804,8 @@ _wezterm__help__cli__tlscreds_commands() { _describe -t commands 'wezterm help cli tlscreds commands' commands "$@" } -_wezterm "$@" +if [ "$funcstack[1]" = "_wezterm" ]; then + _wezterm "$@" +else + compdef _wezterm wezterm +fi