Switches the check for stow to the idiomatic zsh command-exists syntax

This commit is contained in:
Danielle McLean 2016-12-05 22:07:30 +11:00
parent eab82b9ebf
commit 6b89646829
No known key found for this signature in database
GPG key ID: CC91589719027E94

View file

@ -5,7 +5,7 @@
echo 'Bootstrapping your dotfiles...' >&2
mkdir -p $DOTFILES
touch $DOTFILES/.stow
if ! hash stow 2>/dev/null; then
if (( ! $+commands[stow] )); then
echo 'GNU Stow is not installed, fetching it...' >&2
clone-one stow || return $?
STOW=$DOTFILES/stow/local/bin/stow