1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | #Prefix Key
set -g prefix ^z
set -g status-keys vi
setw -g mode-keys vi
setw -g mode-mouse on
setw -g aggressive-resize on
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
unbind c
unbind i
unbind l
unbind s
unbind w
unbind p
# Reload Config File
bind F12 source-file ~/.tmux.conf
# New Window
bind n neww
# Choose Window
bind m choose-window
# Page navigation
bind p next-window
bind o previous-window
# Choose Session
bind a choose-session
# Close Pane
bind x kill-pane
# Toggle Statusbar
bind t set status
bind ^h select-pane -L
bind ^j select-pane -D
bind ^k select-pane -U
bind ^l select-pane -R
bind h resize-pane -L
bind j resize-pane -D
bind k resize-pane -U
bind i split-window -h
bind s split-window
# History
set-option -g history-limit 10000
# Status bar
set-option -g status-bg "default"
set-option -g status-fg default
set-option -g status-interval 5
set -g status-left-length 50
set -g status-justify right
setw -g window-status-format "#[fg=black]â– "
setw -g window-status-current-format "â– "
set-option -g status-left '#[fg=black]#(whoami) #[fg=default]>>#[fg=black] #H #[fg=default]>>#[fg=black] #W '
set-option -g status-right ''
set -g set-remain-on-exit on
set -g pane-border-fg black
set -g pane-active-border-fg white
# Notifications
set-option -g visual-activity off
set-window-option -g monitor-activity off
# Clock
set-window-option -g clock-mode-colour green
set-window-option -g clock-mode-style 24
# Terminal and shell options
set -g default-terminal "screen-256color"
set -g default-shell /bin/bash
set -g default-command /bin/bash
# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right
set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"
# Mouse options
set -g mouse-select-pane on
# Message
set -g message-bg brightblack
set -g message-fg white
|
x
Notes
Clean tmux layout - the boxes in the bottom right corner are window/page markers.
Main prefix is ^z.