Created
May 1, 2009 20:02
-
-
Save ohammersmith/105224 to your computer and use it in GitHub Desktop.
This file contains 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
complete -C "/usr/bin/gemedit --complete" gemedit | |
alias wd='ruby -S watchdog.rb' | |
alias dbm="rake db:migrate:reset && rake db:test:prepare" | |
alias cons="script/console" | |
alias gen="script/generate" | |
alias dest="script/destroy" | |
alias plug="script/plugin" | |
alias ss="test -d ./script && script/server || serve" | |
alias log="tail -f log/*.log" | |
alias tlog="tail -f log/test.log" | |
alias dlog="tail -f log/development.log" | |
alias plog="tail -f log/production.log" | |
function lh() { open http://localhost:3000/"$@" ; } | |
function flh() { open -a Firefox http://localhost:3000 ; } # not really sure why, but with -a App adding an arg for URI's fails | |
function slh() { open -a Safari http://localhost:3000 ; } | |
function wlh() { open -a Webkit http://localhost:3000 ; } | |
function clh() { curl -i http://localhost:3000/"$@" ; } | |
for dir in $(ls ~/repos) | |
do | |
# I'm not really sure what this test does. | |
if [[ "$dir" =~ '.tmproj' ]] | |
then | |
continue | |
fi | |
alias c$dir="cd ~/repos/$dir" | |
alias m$dir="c$dir && test -e ~/repos/$dir/$dir.tmproj && pwd | xargs osascript ~/dotfiles/osx/mate_project.scpt $dir || mate ." | |
alias s$dir="c$dir && ss" | |
alias o$dir="osascript ~/dotfiles/osx/terminal_project.scpt \"$dir\"" | |
done | |
# doesn't seem to be possible right now - unless I'm missing something about the support for scripting in Sequel Pro | |
# ddb - open dev db in Sequel Pro, if that sort of thing is possible | |
# tdb - open test db ... | |
# pdb - open prod db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment