Added Ben's hax passenger reload key bindings

pull/2/head
Bodaniel Jeanes 2009-07-05 01:25:58 +10:00
parent 294254ce2f
commit b6a3084dd6
3 changed files with 13 additions and 5 deletions

View File

@ -31,9 +31,7 @@ set -x CLICOLOR 1
set -x JAVA_HOME "/usr/"
set -U BROWSER "open -a Safari"
bind \cr "rake"
set fish_color_git_branch green
set fish_color_cwd blue
set fish_color_uneditable_cwd red
bind \er 'restart_rails_app >/dev/null'

View File

@ -0,0 +1,5 @@
function reload_webkit
osascript -e 'tell application "WebKit" to do JavaScript \
"window.location.reload()" in front document'
end

View File

@ -0,0 +1,5 @@
function restart_passenger_app
touch tmp/restart.txt
reload_webkit
end