Skip to content

Instantly share code, notes, and snippets.

@codingmeow
Last active May 1, 2017 20:50
Show Gist options
  • Save codingmeow/64a10fead5c169c35a19 to your computer and use it in GitHub Desktop.
Save codingmeow/64a10fead5c169c35a19 to your computer and use it in GitHub Desktop.
Setup New Computer

Setting Up Sublime

$ sudo rm -rf /usr/local/bin/subl
$ sudo ln -s /Applications/Sublime\ Text\ 3.app/Contents/SharedSupport/bin/subl /usr/local/bin
$ subl .

Setting Up iTerm2

$ touch ~/.bash_profile
$ open ~/.bash_profile

paste in:

# Load in the git branch prompt script.
source ~/.git-prompt.sh

function parse_git_branch () {
       git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
 
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
NO_COLOUR="\[\033[0m\]"
 
PS1="$GREEN\u@MEOW Machine$NO_COLOUR:\w$YELLOW\$(parse_git_branch)$NO_COLOUR\$ "

Installing MongoDB

$ sudo chown -R $USER /usr/local/
$ brew update
$ brew install mongodb
$ ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents

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