Add command-exists shell helper

This commit is contained in:
2020-05-23 19:16:06 +01:00
parent ba559be4bc
commit d4d64f654e
7 changed files with 16 additions and 8 deletions

View File

@@ -50,7 +50,7 @@ alias bo="bundle open"
alias bp="bundle package"
alias bu="bundle update"
if (( $+commands[rbenv] )); then
if command-exists rbenv; then
# lazy-load rbenv
rbenv() {
load-rbenv