Skip to content

Instantly share code, notes, and snippets.

@erran
Last active December 20, 2015 04:59
Show Gist options
  • Save erran/6074521 to your computer and use it in GitHub Desktop.
Save erran/6074521 to your computer and use it in GitHub Desktop.

My Mac OS X Environment

Homebrew

RVM

Vim

+ MacVim

NERDTree

Lightline

Startify

My Ubuntu Environment

This README contains a list of actions I take when manually setting up my Ubuntu Dev Env. I'll try to create a Chef cookbook for this.

TODO: Break the following script into sections

# Update all the things
sudo apt-get update -y && sudo apt-get upgrade -y

sudo apt-get install -y aptitude

# SCM tools:
sudo apt-get install -y git-core mercurial

# Ruby:
echo progress-bar >> ~/.curlrc
curl -L https://get.rvm.io | bash -s stable --ruby
source ~/.rvm/scripts/rvm

# Configure and load ~/.bashrc
echo "# Custom bash prompt
if ((UID == 0)); then
  export PS1='[\u @ \W]# '
  export PS2='#'
else
  export PS1='[\u @ \W]$ '
  export PS2='$'
fi" >> .bashrc

export EDITOR='vim'
[[ -f ~/.bash_profile ]] && echo 'source "$HOME/.bashrc"' >> ~/.bash_profile

# Make sure that Ruby and co are in $PATH
rvm use --default 2.0.0

# Install the latest version of Ruby 1.9.3
# I'm against using old software my self, but I'm currently using Chef very often...
rvm install 1.9.3

# Misc stuff such as color schemes and extra apps
sudo apt-get install -y gnome-themes-standard

git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git /tmp/solarized-themes
/tmp/solarized-themes/set_dark.sh

wget -O /tmp/google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i /tmp/google-chrome.deb
sudo apt-get -f install -y

TODO: Add instructions on creating a .gitconfig and .hgrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment