A few useful custom functions that I use in zsh
:
tmuxsess
: Connect to an existingtmux
session, i.e.tmuxsess <name>
.tmuxkill
: Kill an existingtmux
session, i.e.tmuxkill <name>
.tmuxnew
: Create a newtmux
session with a given name, i.e.tmuxnew <name>
.
To have these functions available, either source the file within your shell, i.e. source path/to/functions.zsh
. Alternatively, add the previous command to your .zshrc
file.