Skip to content
Browse files

<Leader>rl reloads Chrome.

  • Loading branch information...
1 parent db416e1 commit 64221f7ebbcb8861a87c5f09a6e4738179ecae6b @gabebw committed Oct 10, 2012
View
0 bin/battery-life → scripts/battery-life
File renamed without changes.
View
0 bin/battery-time → scripts/battery-time
File renamed without changes.
View
10 scripts/reload-chrome
@@ -0,0 +1,10 @@
+#!/usr/bin/env osascript
+
+tell application "Google Chrome" to tell the active tab of its first window
+ activate
+ reload
+end tell
+
+tell application "iTerm"
+ activate
+end tell
View
2 tmux.conf
@@ -66,7 +66,7 @@ set -g status-fg white
set -g status-interval 1
# status name
set -g status-left '#[fg=magenta]#S#[default]'
-set -g status-right '#[fg=magenta]#(~/.dotfiles/bin/battery-life) (#(~/.dotfiles/bin/battery-time))#[default] #[fg=yellow]%Y-%m-%d %H:%M#[default] '
+set -g status-right '#[fg=magenta]#(~/.dotfiles/scripts/battery-life) (#(~/.dotfiles/scripts/battery-time))#[default] #[fg=yellow]%Y-%m-%d %H:%M#[default] '
# I keep getting this message for split-window. Not sure why.
# /Users/gabe/.tmux.conf: 68: can't establish current session
View
5 vim/functions.vim
@@ -0,0 +1,5 @@
+" Write all files and reload chrome.
+function! ReloadChrome()
+ wall
+ execute ":silent !reload-chrome"
+endfunction
View
1 vim/mapping.vim
@@ -8,6 +8,7 @@ nnoremap <Leader>e :e <C-R>=expand("%:p:h") . "/" <CR>
nnoremap <Leader>s :split <C-R>=expand("%:p:h") . '/'<CR>
nnoremap <Leader>v :vsplit <C-R>=expand("%:p:h") . '/'<CR>
nnoremap <Leader>rr :call Send_to_Tmux("clear\n!-2\n")<CR>
+nnoremap <Leader>rl :call ReloadChrome()<CR>
" Remove trailing whitespace
nnoremap <Leader>w :%s/\s\+$//e<CR>
View
1 vimrc
@@ -15,6 +15,7 @@ source ~/.vim/completion.vim
source ~/.vim/tabularizing.vim
source ~/.vim/test_runners.vim
source ~/.vim/rails_shortcuts.vim
+source ~/.vim/functions.vim
" Allows % to switch between if/elsif/else/end, open/close XML tags, and
" more.
runtime macros/matchit.vim

0 comments on commit 64221f7

Please sign in to comment.
Something went wrong with that request. Please try again.