Last active
August 12, 2016 11:31
-
-
Save maoizm/dd11b34049be5a328865b2be92ec93d0 to your computer and use it in GitHub Desktop.
customizing Babun environment
This file contains hidden or 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/zsh | |
# curl https://gist.github.com/maoizm/dd11b34049be5a328865b2be92ec93d0/raw/babun-post-install | zsh | |
# | |
# based on script of @prabirshrestha at https://gist.github.com/prabirshrestha/279d8b179d9353fe8694 | |
successfully() { | |
$* || (echo "\nfailed" 1>&2 && exit 1) | |
} | |
fancy_echo() { | |
echo "\n$1" | |
} | |
fancy_echo "Updating babun" | |
successfully pact update | |
fancy_echo "Updating ~/.zshrc" | |
successfully curl https://gist.githubusercontent.com/maoizm/5105c57460bcc1480285b36c9bbcf957/raw/677a314057e2642401730632200196e6f4b739df/.zshrc -o ~/.zshrc | |
#fancy_echo "Installing tmux" | |
# successfully pact install tmux | |
fancy_echo "Installing solarized dark theme and powerconsolas for mintty" | |
successfully curl https://gist.githubusercontent.com/maoizm/ff2f9fff2e51e1f93b74d78d466e4316/raw/a0cb5cc37773e9df610e5a6a3e9db25385d367c0/.minttyrc -o ~/.minttyrc | |
#fancy_echo "Installing the_silver_searcher (ag)" | |
# successfully pact install automake pkg-config libpcre-devel liblzma-devel | |
# successfully git clone https://github.com/ggreer/the_silver_searcher ~/ag | |
# successfully pushd ~/ag | |
# successfully bash -x -o igncr ./build.sh && make install | |
# successfully cd .. | |
# successfully rm -rf ~/ag | |
# successfully popd | |
#fanyc_echo "Updating gitconfig" | |
# successfully git config --global core.autocrlf true | |
# successfully git config --global user.name "prabirshrestha" | |
# successfully git config --global user.email "[email protected]" | |
echo "execute 'chere -i -t mintty' in admin mode to enable Zsh Prompt Here" | |
source ~/.zshrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment