2013-03-16 21:16:00 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo "[ZSH]"
|
|
|
|
|
|
|
|
if [ ! -d ~/.oh-my-zsh ]; then
|
|
|
|
# https://github.com/robbyrussell/oh-my-zsh
|
2013-03-16 23:30:13 -07:00
|
|
|
echo
|
|
|
|
echo "* 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-16 23:30:13 -07:00
|
|
|
echo
|
|
|
|
echo "* Changing shell"
|
2013-03-16 21:16:00 -07:00
|
|
|
chsh -s /bin/zsh
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Create links
|
2013-03-16 23:30:13 -07:00
|
|
|
echo
|
|
|
|
echo "* Setting up symlinks"
|
2013-03-16 21:16:00 -07:00
|
|
|
src=$(cd "$(dirname "$0")"; pwd)
|
|
|
|
|
|
|
|
ln -sf $src/zshrc ~/.zshrc
|
|
|
|
ln -sf $src/zsh ~/.zsh
|
|
|
|
|
2013-03-16 23:30:13 -07:00
|
|
|
echo
|
|
|
|
echo "Done!"
|