helm/install/zsh
2013-03-17 23:41:01 -04:00

27 lines
478 B
Bash
Executable file

#!/bin/bash
echo "[ZSH]"
if [ ! -d ~/.oh-my-zsh ]; then
# https://github.com/robbyrussell/oh-my-zsh
echo
echo "* Installing oh-my-zsh"
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
# Set new shell
echo
echo "* Changing shell"
chsh -s /bin/zsh
fi
# Create links
echo
echo "* Setting up symlinks"
src=$(cd "$(dirname "$0")/.."; pwd)
ln -sf $src/zshrc ~/.zshrc
ln -sf $src/zsh ~/.zsh
echo
echo "Done!"