From 46990de65c25e3e7c89c8a48343a8badb68d91cd Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 18 May 2016 04:30:06 -0400 Subject: [PATCH] install.sh: don't install hammerspoon dotfiles on non-OSX machines --- install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 752aca0e..2714646d 100755 --- a/install.sh +++ b/install.sh @@ -4,11 +4,14 @@ _clone() { [ -d "$2" ] || git clone --recursive "$1" "$2"; } # In case this file was run via curl _clone https://github.com/hlissner/dotfiles ~/.dotfiles -_clone https://github.com/hlissner/.hammerspoon ~/.hammerspoon _clone https://github.com/hlissner/.vim ~/.vim _clone https://github.com/tarjoilija/zgen ~/.zgen _clone https://github.com/jimeh/tmuxifier ~/.tmuxifier +if [ "$(name)" == "Darwin" ]; then + _clone https://github.com/hlissner/.hammerspoon ~/.hammerspoon +fi + shopt -s extglob for rcfile in "${HOME}"/.dotfiles/!(.*|bin|scripts|*.md|install.sh) do