helm/install/zsh

23 lines
455 B
Plaintext
Raw Normal View History

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
echo "\n* Installing oh-my-zsh"
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
# Set new shell
echo "\n* Changing shell"
chsh -s /bin/zsh
fi
# Create links
echo "\n* Setting up symlinks"
src=$(cd "$(dirname "$0")"; pwd)
ln -sf $src/zshrc ~/.zshrc
ln -sf $src/zsh ~/.zsh
echo "\nDone!"