##Setting Up a Profile
Based on this stackoverflow answer : http://superuser.com/questions/789448/choosing-between-bashrc-profile-bash-profile-etc
.bash_profile should be always :
if [ -f ~/.profile ]; then
source ~/.profile
fi
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
.profile should contain stuff you want in every shell, bashrc should contain only bash-specific stuff for interactive use - command prompts, bash completion etc.
##Install Homebrew (will install xcode command line tools)
install cask
brew install caskroom/cask/brew-cask
##iTerm2 brew cask install iTerm2
##Install iTerm 2 brew install iTerm 2
##virtualbox brew cask install virtualbox
##boot2docker
brew install boot2docker
##Sublime Text 3 install sublime text 3
add link for command line access
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
install package control for sublime install markdown editor for sublime (MarkdownEditing), after closing all .md files
##Github setup
copy id_rsa, id_rsa.pub from somewhere for github
create github token for gist editing
#verify github access works with key
ssh -T git@github.com
sublime github extension
add github token for github extension
git config --global user.name "..." git config --global user.email "..."
ssh-agent
##Go Setup
brew install go
setup gopath in .profile
GOPATH=<...>
sublime go extension
# http://superuser.com/questions/490425/how-do-i-switch-between-java-7-and-java-6-on-os-x-10-8-2/568016#568016
function setjdk() {
if [ $# -ne 0 ]; then
removeFromPath '/System/Library/Frameworks/JavaVM.framework/Home/bin'
if [ -n "${JAVA_HOME+x}" ]; then
removeFromPath $JAVA_HOME
fi
export JAVA_HOME=`/usr/libexec/java_home -v $@`
export PATH=$JAVA_HOME/bin:$PATH
fi
}
function removeFromPath() {
export PATH=$(echo $PATH | sed -E -e "s;:$1;;" -e "s;$1:?;;")
}
use setjdk 1.8 to move to java 8, setjdk 1.7 for earlier version.
##PlantUML Setup brew install plantuml