Prefix Ctrl+space
Config
set-option -sa terminal-overrides ",xterm*:Tc"
set-option -g allow-passthrough on
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
bind -n M-H previous-window
bind -n M-L next-window
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-open'
set-option -g mouse on
set -g @continuum-restore 'on'
# Theme
source-file ~/.config/tmux/tmux.theme.dark
# source-file ~/.config/tmux/tmux.theme.light
set -g @plugin 'tmux-plugins/tmux-cpu'
set -g @plugin 'tmux-plugins/tmux-continuum'
set-environment -g PATH "$HOMEBREW_PREFIX/bin:/usr/local/bin:/bin:/usr/bin:/usr/sbin:/sbin"
run '$HOMEBREW_PREFIX/opt/tpm/share/tpm/tpm'
Commands
tmux ls # list sessions
tmux new -s session_name # create new session
tmux a -t session_name # attach to an existing session
tmux new-window -n "my_window" # create new window
tmux kill-server # kill all servers
Prefix + ( # next session
Prefix + ) # prev session
Prefix + d # detach session
Prefix + w # show all sessions with windows
Prefix + c # create new window
Prefix + p # prev window
Prefix + n # next window
Prefix + % # create new pan side
Prefix + " # create new pan below
Prefix + & # kills a session