mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-16 11:36:16 +08:00
fix(heroku-alias): add command guard check for heroku
- Add command existence check at the top of the plugin to prevent aliases and functions from being created when heroku is not installed. This is consistent with other plugins (e.g. bun, volta, gh, helm) that guard against missing commands.
This commit is contained in:
parent
70ad5e3df8
commit
4d63819538
@ -1,3 +1,8 @@
|
||||
# Return immediately if heroku is not found
|
||||
if (( ! ${+commands[heroku]} )); then
|
||||
return
|
||||
fi
|
||||
|
||||
# general
|
||||
alias h='heroku'
|
||||
alias hauto='heroku autocomplete $(echo $SHELL)'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user