Last active
December 19, 2015 18:19
-
-
Save svs14/5998032 to your computer and use it in GitHub Desktop.
Bootstraps a fresh Ubuntu 12.04 install with env-custom (dot files) and oh-my-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 | |
# | |
# Bootstraps env-custom for Ubuntu machine 12.04 | |
# additionally with oh-my-zsh. | |
# | |
# Set bash to exit immediately on failure | |
set -e | |
# Set bash statements to return failure if any piped command within it fails | |
set -o pipefail | |
# Change directory to home | |
cd ~ | |
# Setup bleeding edge vim repository | |
sudo aptitude update && sudo aptitude -y install python-software-properties | |
sudo add-apt-repository -y ppa:nmi/vim-snapshots | |
# Update and install required Ubuntu packages | |
sudo aptitude update && sudo aptitude -y install \ | |
git curl zsh vim tmux python python-dev build-essential cmake clang | |
# Retrieve env-custom | |
git clone https://github.com/sjenkz/dotfiles.git .env_custom | |
# Install oh-my-zsh | |
.env_custom/zsh/install-oh-my-zsh.sh || true | |
# Reconfigure zsh theme | |
sed -i 's/robbyrussell/nicoulaj/' .zshrc | |
# Disable correction | |
sed -i 's/# DISABLE_CORRECTION="true"/DISABLE_CORRECTION="true"/' .zshrc | |
# Install env-custom | |
.env_custom/install.sh | |
# Default shell to zsh | |
sudo chsh $USER -s $(which zsh) || true | |
# Notify success of installation | |
echo "Installation succeeded." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment