fix(zsh/helper): make command-path helper return 1 if command does not exist

This commit is contained in:
Jim Myhrberg
2024-07-01 09:35:59 +01:00
parent e2f55741aa
commit ad66b0251f

4
zshenv
View File

@@ -69,6 +69,10 @@ command-exists() {
}
command-path() {
if ! command-exists "$1"; then
return 1
fi
echo "${commands[$1]}"
}