tmux

Commands

Move pane to new window

By default, Ctrl+b, ! would break the active pane into a new window and switch to it.

Where Ctrl + b is the default prefix for tmux.

Details

The tmux command this key executes is break-pane (alias: breakp) as implemented in cmd-break-pane.c and bound as default in key-bindings.c as seen in list-keys (alias: lsk) command output:

bind-key    -T prefix       !                 break-pane

https://unix.stackexchange.com/a/386396

Rename window

Ctrl+b, ,

Configuration

new-session
set -g prefix C-a
setw -g mouse on
set -g history-limit 30000
set -g default-terminal "screen-256color"
setw -g monitor-activity on
set -g visual-activity on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
bind | split-window -h
bind - split-window -v
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+

set -g pane-border-style fg='#444444'
set -g pane-active-border-style fg='#00afff'
set -g status-interval 10
set -g status-bg '#080808'
set -g status-fg '#8a8a8a'
setw -g window-status-style fg='#8a8a8a',bg='#080808'
setw -g window-status-current-style bg='#00afff',fg='#000000'
setw -g window-status-activity-style fg='default',bg='default','underscore'
setw -g window-status-last-style fg='#00afff',bg='default','none'

set -g status-right-length 60
setw -g automatic-rename on