Notes Entry Tmux

Tmux is a terminal multiplexer that allow user to set up pane (segments of a window when doing split) or windows which is a segments of a session. The tmux can be used to control the workspace. Here are a list of shortcuts. Note prefix is by default but I remapped to control-a. Refer to my tmux.cconf. Note you will need to install the plugin manager by running git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm.

In terminal environment

  • tmux start a new session
  • tmux ls list existing session
  • tmux a -t <session#> attach to a particular session

Within the tmux session

  • prefix + :new - new session
  • prefix + s - select session. (use hjkl to control direction)
  • prefix + c - new window
  • prefix + n - next window
  • prefix + | - split horizontally
  • prefix + - - split vertically
  • prefix + hjkl - resize pane
  • control + hjkl - move between pane
  • prefix + d - detach from session