helm/install/git

26 lines
572 B
Plaintext
Raw Normal View History

#!/bin/zsh
2013-03-16 21:16:00 -07:00
if ! command-exists git; then
if ! command-exists brew; then
2013-03-16 21:16:00 -07:00
echo "Homebrew is required!"
exit
fi
2013-03-21 19:26:04 -07:00
echo "==> Git: Installing"
brew install git | indent
2013-03-16 21:16:00 -07:00
fi
if [ ! -e /usr/local/bin/branch ]; then
2013-03-21 19:26:04 -07:00
echo "==> Git: Installing git-friendly"
2013-03-16 21:16:00 -07:00
# https://github.com/jamiew/git-friendly
bash < <(curl https://raw.github.com/jamiew/git-friendly/master/install.sh)
fi
# Create links
2013-03-21 19:26:04 -07:00
echo "==> Git: Setting up symlinks"
ln -sf ~/.dotfiles/gitignore ~/.gitignore
ln -sf ~/.dotfiles/gitconfig ~/.gitconfig
2013-03-16 21:16:00 -07:00
2013-03-21 19:26:04 -07:00
echo "==> Git: DONE!"