diff --git a/zshenv b/zshenv index ff69414..7d85bf5 100644 --- a/zshenv +++ b/zshenv @@ -69,6 +69,10 @@ command-exists() { } command-path() { + if ! command-exists "$1"; then + return 1 + fi + echo "${commands[$1]}" }