Created
July 15, 2015 14:53
-
-
Save kinwahlai/63621e3311f577670ffa to your computer and use it in GitHub Desktop.
setup antigen and zsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# assuming brew installed, especially git | |
mkdir ~/.zsh-antigen | |
cd ~/.zsh-antigen | |
git init . | |
git submodule add https://github.com/zsh-users/antigen.git antigen | |
# should check zshrc already exists | |
cat > "~/.zshrc" <<EOF | |
ZSHA_BASE=$HOME/.zsh-antigen | |
source $ZSHA_BASE/antigen/antigen.zsh | |
antigen use oh-my-zsh | |
antigen bundles <<EOBUNDLES | |
git | |
rsync | |
npm | |
rake | |
rvm | |
bundler | |
zsh-users/zsh-completions src | |
zsh-users/zsh-syntax-highlighting | |
command-not-found | |
history | |
z | |
djui/alias-tips | |
coffee | |
gradle | |
grails | |
brew | |
brew-cask | |
gem | |
osx | |
docker | |
boot2docker | |
yerinle/zsh-gvm | |
johnhamelink/rvm-zsh | |
unixorn/autoupdate-antigen.zshplugin | |
EOBUNDLES | |
# antigen theme bira | |
antigen theme superjarin | |
antigen apply | |
EOF | |
TEST_CURRENT_SHELL=$(expr "$SHELL" : '.*/\(.*\)') | |
if [ "$TEST_CURRENT_SHELL" != "zsh" ]; then | |
echo "\033[0;34mTime to change your default shell to zsh!\033[0m" | |
chsh -s $(grep /zsh$ /etc/shells | tail -1) | |
fi | |
unset TEST_CURRENT_SHELL | |
# what these 2 lines do? | |
env zsh | |
. ~/.zshrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment