Is there a way to alias tmux commands? -
tmux has command mode can accessed via c-b :
, i'm wondering if there way alias commands in .tmux.conf
file split-window
use more vsp
in vim.
i know can bind keyboard shortcuts bind
can alias commands well?
this doesn't appear possible of tmux 2.0.
one thing can do, however, send commands enclosing tmux session shell. means can, example, create bash alias can split windows:
alias vsp="tmux split-window -h"
you can run vsp
bash prompt split tmux window vertically. depending on specific use case, might help.
it's worth noting that, if minimising typing goal, tmux commands can shortened shortest unambiguous prefix: sp
same thing split-window
.
Comments
Post a Comment