Skip to content

Instantly share code, notes, and snippets.

@rymawby
Created June 14, 2013 10:46
Show Gist options
  • Select an option

  • Save rymawby/5780958 to your computer and use it in GitHub Desktop.

Select an option

Save rymawby/5780958 to your computer and use it in GitHub Desktop.
My .bash_profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
export PATH=/usr/local/bin:${PATH}:/Users/rymawby/scripts:/Applications/Adobe\ Flash\ Builder\ 4.6/sdks/flex_sdk_4.1.0.16076\ and\ AIRSDK_2.5/bin:/Users/rymawby/scripts/get-shit-done:/usr/local/share/npm/bin
export PYTHONPATH=$(brew --prefix)/lib/python2.7/site-packages:$PYTHONPATH
export RUBYLIB=/Users/rymawby/.rvm/gems/ruby-1.9.2-p290@wespend/bin:/Users/rymawby/.rvm/gems/ruby-1.9.2-p290@global/bin:$RUBYLIB
export JAVA_HOME=`/usr/libexec/java_home -v 1.6 -d32`
export FLEX_HOME=/Applications/Adobe\ Flash\ Builder\ 4.6/sdks/flex_sdk_4.1.0.16076\ and\ AIRSDK_2.5/
alias log="~/scripts/log-to-day-one.rb"
alias logj="~/scripts/log-jira-to-day-one.rb"
alias sub='open -a "/Applications/Sublime Text 2.app"'
alias adt2='/Users/rymawby/Downloads/AdobeAIRSDK/lib/adt.jar'
alias ga='git add'
alias gc='git commit -m'
alias gb='git branch'
alias gs='git status'
alias gco='git checkout'
# show logs that would show in console - plus you can grep a certain application with a parameter
function console () { .
if [[ $# > 0 ]]; then
query=$(echo "$*"|tr -s ' ' '|')
tail -f /var/log/system.log|grep -i --color=auto -E "$query"
else
tail -f /var/log/system.log
fi
}
# cd to the path of the front Finder window
cdf() {
target=`osascript -e 'tell application "Finder" to if (count of Finder windows) > 0 then get POSIX path of (target of front Finder window as text)'`
if [ "$target" != "" ]; then
cd "$target"; pwd
else
echo 'No Finder window found' >&2
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment