From 6b89646829cf023be201b49b9024d7e459c23fe3 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 5 Dec 2016 22:07:30 +1100 Subject: [PATCH] Switches the check for stow to the idiomatic zsh command-exists syntax --- local/bin/dots | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local/bin/dots b/local/bin/dots index 43d2238..9cf7d0a 100755 --- a/local/bin/dots +++ b/local/bin/dots @@ -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