mirror of https://github.com/bjeanes/dotfiles.git
Added Ben's hax passenger reload key bindings
parent
294254ce2f
commit
b6a3084dd6
|
@ -31,9 +31,7 @@ set -x CLICOLOR 1
|
||||||
set -x JAVA_HOME "/usr/"
|
set -x JAVA_HOME "/usr/"
|
||||||
set -U BROWSER "open -a Safari"
|
set -U BROWSER "open -a Safari"
|
||||||
|
|
||||||
|
|
||||||
bind \cr "rake"
|
|
||||||
|
|
||||||
set fish_color_git_branch green
|
|
||||||
set fish_color_cwd blue
|
set fish_color_cwd blue
|
||||||
set fish_color_uneditable_cwd red
|
set fish_color_uneditable_cwd red
|
||||||
|
|
||||||
|
bind \er 'restart_rails_app >/dev/null'
|
|
@ -0,0 +1,5 @@
|
||||||
|
function reload_webkit
|
||||||
|
osascript -e 'tell application "WebKit" to do JavaScript \
|
||||||
|
"window.location.reload()" in front document'
|
||||||
|
|
||||||
|
end
|
|
@ -0,0 +1,5 @@
|
||||||
|
function restart_passenger_app
|
||||||
|
touch tmp/restart.txt
|
||||||
|
reload_webkit
|
||||||
|
|
||||||
|
end
|
Loading…
Reference in New Issue