Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@davidmh
Created September 26, 2017 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidmh/2f9bdbb33507c0f6daddf18f3cdb0391 to your computer and use it in GitHub Desktop.
Save davidmh/2f9bdbb33507c0f6daddf18f3cdb0391 to your computer and use it in GitHub Desktop.
tmux mappings
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