Created
September 26, 2017 21:02
-
-
Save davidmh/2f9bdbb33507c0f6daddf18f3cdb0391 to your computer and use it in GitHub Desktop.
tmux mappings
This file contains hidden or 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
command! ZoomServer call system('tmux resize-pane -Z -t 2') | |
command! ZoomClient call system('tmux resize-pane -Z -t 1') | |
command! RestartClient call system('tmux send-keys -t 1 C-c "npm run dev" Enter') | |
command! RestartServer call system('tmux send-keys -t 2 C-c "npm run start-dev" Enter') | |
nnoremap <silent> <leader>zc :ZoomClient<CR> | |
nnoremap <silent> <leader>zs :ZoomServer<CR> | |
nnoremap <silent> <leader>rc :RestartClient<CR> | |
nnoremap <silent> <leader>rs :RestartServer<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment