Skip to content

Tmux

Change Window numbering

Change window numbering of window tmux

move-window -s x -t y

tmux change default directory

attach -c /path/to/it/

https://unix.stackexchange.com/questions/268386/how-to-change-default-new-window-directory-from-within-the-tmux

Copy text

Use tmux buffer to copy text from terminal easily

  1. Get into tmux copy-mode: Prefix + [.
  2. Navigate beginning of text to select. Press Space or Ctrl + Space.
  3. Press Enter when you’re complete with your selection.
  4. Get back into insert mode and paste selection: Prefix + Enter
  5. To copy to system clipboard press Shift before selecting and copying your selection.

References:

Show time on tmux

Prefix + t

Scroll in Tmux

  • Ctrl-b then [ then you can use your normal navigation keys to scroll around (eg. Up Arrow or PgDn)
  • Use vi-mode: shift + k or shift + j
  • Back in insert through enter

https://superuser.com/questions/209437/how-do-i-scroll-in-tmux

https://awhan.wordpress.com/2010/06/20/copy-paste-in-tmux/

Equally balance tmux split panes

  1. select-layout even-vertical: Ctrl+b, Alt+2
  2. select-layout even-horizontal: Ctrl+b, Alt+1

https://unix.stackexchange.com/questions/32986/how-do-i-equally-balance-tmux1-split-panes

Jump to specific window

C-b q