Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
| /* Additional styles for Chrome Inspector; should be used with | |
| http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
| and | |
| http://dpaste.com/hold/595890/ | |
| */ | |
| #elements-content li.hovered:not(.selected) .selection { | |
| /* hover color */ | |
| background: rgba(255, 255, 255, .2) !important; | |
| } | |
| #elements-content .selection.selected { |
| #!/usr/bin/env bash | |
| apt-get -y update | |
| apt-get -y install build-essential zlib1g-dev libssl-dev libxml2-dev libxslt-dev libreadline6-dev libyaml-dev | |
| # apt-get -y install libmysqlclient-dev # uncomment for mysql support | |
| cd /tmp | |
| wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p286.tar.gz | |
| tar -xvzf ruby-1.9.3-p286.tar.gz | |
| cd ruby-1.9.3-p286/ | |
| ./configure --prefix=/usr/local | |
| make |
This script installs a patched version of ruby 1.9.3-p0 with patches to make ruby-debug work again (#47) and boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84).
Huge thanks to funny-falcon for the performance patches.
| function parse_git_branch { | |
| git_status="$(git status 2> /dev/null)" | |
| pattern="^# On branch ([^${IFS}]*)" | |
| if [[ ! ${git_status}} =~ "working directory clean" ]]; then | |
| state="*" | |
| fi | |
| # add an else if or two here if you want to get more specific | |
| if [[ ${git_status} =~ ${pattern} ]]; then | |
| branch=${BASH_REMATCH[1]} |
| # Original: http://henrik.nyh.se/2008/12/git-dirty-prompt | |
| # | |
| # I've modified the prompt to be simple and clean; also, I colored the branch rather than the path | |
| # ~/dev/dir[master]$ # clean working directory | |
| # ~/dev/dir[master*]$ # dirty working directory | |
| function parse_git_dirty { | |
| [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
| } | |
| function parse_git_branch { |