mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:26:40 +00:00
Add command-exists shell helper
This commit is contained in:
8
zshrc
8
zshrc
@@ -9,6 +9,14 @@ if [[ "$OSTYPE" == "darwin"* ]] && [ -f "/etc/zshrc" ]; then
|
||||
source "/etc/zshrc"
|
||||
fi
|
||||
|
||||
# ==============================================================================
|
||||
# Helpers
|
||||
# ==============================================================================
|
||||
|
||||
command-exists() {
|
||||
command -v "$1" &> /dev/null
|
||||
return $?
|
||||
}
|
||||
|
||||
# ==============================================================================
|
||||
# Zinit
|
||||
|
||||
Reference in New Issue
Block a user