Permalink
Browse files

Reload tmux.conf when saved

  • Loading branch information...
1 parent 3d19733 commit d6eb42fd8df06f8e685b0c6b8c57b83bd035eb4b @lmarburger committed Aug 24, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 vimrc
View
5 vimrc
@@ -158,12 +158,15 @@ map <leader>m :silent !open "%" -a /Applications/Marked.app<cr>:redraw!<cr>
nmap <expr> gp '`[' . strpart(getregtype(), 0, 1) . '`]'
-augroup Vim
+augroup Config
autocmd!
" Reload vimrc after save.
autocmd BufWritePost ~/.vim/vimrc source ~/.vim/vimrc
+ " Reload tmux.conf after save.
+ autocmd BufWritePost ~/Code/dotfiles/.tmux.conf call system('tmux source-file ~/.tmux.conf')
+
" Create the directory if it doesn't exist.
autocmd BufNewFile * silent !mkdir -p $(dirname %)

0 comments on commit d6eb42f

Please sign in to comment.