The best program for Command Line Interface coding.
- Saved sessions
- Multiple windows
Installation
sudo pacman -S tmux
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
nvim ~/.config/tmux/tmux.conf
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
run '~/.tmux/plugins/tpm/tpm'
# set prefix
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
Keybinds
prefix
isCTRL+Space
. You press the prefix key then release before pressing the other keys- Enter commands
: ...
withprefix+:
Tmux Session Management
tmux new -s my_session_name
: create new sessiontmux ls
: view sessions:new new_session_name
: create new session inside tmuxprefix+s
: view sessions inside tmuxprefix+w
: view each session as windowtmux attach
: attach to most recent sessiontmux attach -t my_session_name
: attach to specific session
Tmux Window Management
prefix+c
: make new Tmux Windowprefix+<window number>
: make window number the primary windowprefix+n
: go to next windowprefix+p
: go to previous windowprefix+&
: kill current window:swap-window -s 2 -t 1
: swaps window 1 with 2
Tmux Pane Management
prefix+%
: split current window horizontallyprefix+"
: split current window verticallyprefix+<arrow key>
: change current focused paneprefix+q
: quick change to a numbered paneprefix+z
: zoom into paneprefix+!
: convert pane into windowprefix+x
: close current pane