Created
May 17, 2012 20:08
-
-
Save joncode/2721292 to your computer and use it in GitHub Desktop.
New Computer Install Mac OSX 10.7.4
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
| PS1="\n\w \n ::: [ll] [cdr] [bi] [rdbm] [rs] [rc] [gk] [gph] [gphm] [hl] [hr] [hrdb] \n :: [gs] [gb] [gba] [gco] [gcb] [gap] [gaa] [gc] [gca] [gm] [gd] [gl] [gp] \n :) -> " | |
| alias ll="ls -lahG" | |
| alias cdr='cd ~/rails' | |
| alias gs='git status' | |
| alias gl='git pull' | |
| alias gp='git push' | |
| alias gm='git merge' | |
| alias gap='git add -p' | |
| alias gaa='git add .' | |
| alias gd='git diff | mate' | |
| alias gc='git commit -m' | |
| alias gca='git commit -m -a' | |
| alias gb='git branch' | |
| alias gba='git branch -a' | |
| alias gco='git checkout' | |
| alias gcb='git checkout -b' | |
| alias gphm='git push heroku master' | |
| alias gph='git push heroku' | |
| alias gk='gitk --all &' | |
| alias hl='heroku logs' | |
| alias hr='heroku run' | |
| alias hrdb='heroku run rake db:migrate' | |
| alias bi='bundle install' | |
| alias rdbm='rake db:migrate' | |
| alias rs='rails server' | |
| alias rc='rails console' | |
| export PATH="/usr/local/bin:$PATH" | |
| export PATH="/usr/bin/psql:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin/psql:/usr/local/git/bin:$PATH" | |
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* |
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
| 1. download and install Xcode - this is for all the C++ compilers , if you have a compiler error later in the process , check this step and do not skip this step | |
| 2. change admin user in system preferences password to '1' & show all hidden files and folders - type this into terminal ... | |
| defaults write com.apple.Finder AppleShowAllFiles TRUE | |
| - restart Finder with this command to show files and folders | |
| killall Finder | |
| - type this in if you want to hide files | |
| defaults write com.apple.Finder AppleShowAllFiles FALSE | |
| 3. download github and instal GUI - sign up for GitHub first | |
| http://code.google.com/p/git-osx-installer | |
| download mac GUI | |
| http://mac.github.com/ | |
| - type 'git --help' into the terminal ... git should be hooked up by the mac GUI as far as SSH is concerned and ready to go ... | |
| 4. put .usr , Rails , Sites folders in the file favorites window | |
| 5. go to Xcode / preferences / downloads | |
| and install the command line tools | |
| type cc --version | |
| 6. install homebrew | |
| go to homebrew website and click install | |
| 7. Install RVM & ruby | |
| curl -L get.rvm.io | bash -s stable | |
| source ~/.rvm/scripts/rvm | |
| brew install autoconf automake | |
| rvm get head | |
| rvm pkg install openssl | |
| rvm pkg install readline | |
| rvm install 1.9.3-p125 --patch xcode-debugopt-fix-r34840.diff --with-readline-dir=$rvm_path/usr --with-openssl-dir=$rvm_path/usr --with-tcl-lib=/usr --with-tk-lib=/usr | |
| 8. install rails gem | |
| sudo gem install rails | |
| 9. add .bash_profile file to user-home-folder | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment