I prefer using tmux
, since it's highly customizable. tmux
is installed by default on Ubuntu Server
To install tmux
on Ubuntu Desktop, use:
sudo apt install tmux
Some of the default keyboard shortcuts on tmux
can be a little tricky. I like some small modification to start with.
Add the following lines to the default config ~/.tmux.conf
:
# set prefix to control-f
set -g prefix C-f
#unbind system defined prefix
unbind C-b
# horizontal split
bind "'" split-window -h
# vertical split
bind - split-window -v
This changes the default shortcut to Ctrl+F instead of Ctrl+B.
In addition, it changes the horizontal and vertical split functions to the ' and - keys, because they are quite intuitive and easy to remember.
In addition, the Universe repo has tmuxinator
, which is a tool to create tmux
sessions using an intuitive yaml
configuration scheme. This is also highly recommended. Install with:
sudo apt install tmuxinator