helm/install/zsh

22 lines
542 B
Plaintext
Raw Normal View History

2013-03-16 21:16:00 -07:00
#!/bin/bash
if [ ! -d ~/.oh-my-zsh ]; then
# https://github.com/robbyrussell/oh-my-zsh
2013-03-21 19:26:04 -07:00
echo "==> ZSH: Installing oh-my-zsh"
2013-03-16 21:16:00 -07:00
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
# Set new shell
2013-03-21 19:26:04 -07:00
echo "==> ZSH: Changing shell"
2013-03-16 21:16:00 -07:00
chsh -s /bin/zsh
fi
# Create links
2013-03-21 19:26:04 -07:00
echo "==> ZSH: Setting up symlinks"
[ -d ~/.zsh ] && rm ~/.zsh
2013-03-21 19:26:04 -07:00
ln -sf ~/.dotfiles/zsh ~/.zsh
ln -sf ~/.dotfiles/zshrc ~/.zshrc
ln -sf ~/.dotfiles/zshenv ~/.zshenv
ln -sf ~/.dotfiles/bashrc ~/.bashrc
2013-03-16 21:16:00 -07:00
2013-03-21 19:26:04 -07:00
echo "==> ZSH: DONE!"