install.sh: don't install hammerspoon dotfiles on non-OSX machines

This commit is contained in:
Henrik Lissner 2016-05-18 04:30:06 -04:00
parent 926a02e88d
commit 46990de65c

View file

@ -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