Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created January 18, 2017 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Drugoy/0aeb0bb981e818e1617f616e3d90f3c1 to your computer and use it in GitHub Desktop.
Save Drugoy/0aeb0bb981e818e1617f616e3d90f3c1 to your computer and use it in GitHub Desktop.
Someone's tmux.conf
# tmux configuration file
# set terminal to "screen-256color"
set -g default-terminal "screen-256color"
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
bind r source-file ~/.tmux.conf
# Set the prefix to ^A.
unbind C-b
set -g prefix ^A
bind a send-prefix
set -g prefix ^a
# bind appropriate commands similar to screen.
unbind ^X
bind ^X lock-server
unbind x
bind x lock-server
# screen ^C c
unbind ^C
bind ^C new-window
unbind c
bind c new-window
# detach ^D d
unbind ^D
bind ^D detach
# displays *
unbind *
bind * list-clients
# next ^@ ^N sp n
unbind ^@
bind ^@ next-window
unbind ^N
bind ^N next-window
unbind " "
bind " " next-window
unbind n
bind n next-window
# title A
unbind A
bind A command-prompt "tmux rename-window %%"
# other ^A
unbind ^A
bind ^A last-window
# prev ^H ^P p ^?
unbind ^H
bind ^H previous-window
unbind ^P
bind ^P previous-window
unbind p
bind p previous-window
unbind BSpace
bind BSpace previous-window
# windows ^W w
unbind ^W
bind ^W list-windows
unbind w
bind w list-windows
# quit \
unbind '\'
bind '\' confirm-before "kill-server"
# kill K k
unbind K
bind K confirm-before "kill-window"
unbind k
bind k confirm-before "kill-window"
# redisplay ^L l
unbind ^L
bind ^L refresh-client
unbind l
bind l refresh-client
# split
unbind |
bind - split-window -v
# split
unbind |
bind | split-window -h
# :kB: focus up
unbind Tab
bind Tab select-pane -t:.+
unbind BTab
bind BTab select-pane -t:.-
# " windowlist -b
unbind '"'
bind '"' choose-window
set -g set-titles on
# bind F aggressive-resize
# mescaline
set -g status on
set -g status-utf8 on
# set -g message-command-style 'bg=0'
# set -g message-style 'bg=red'
# set -g pane-active-border-style 'bg=0'
# set colors
set -g status-bg 'default'
set -g status-fg 'colour244'
# message display
set-option -g message-bg colour235
set-option -g message-fg colour248
# sane defaults
# set-option -g base-index 1
set-option -g buffer-limit 100
set-option -g clock-mode-style 24
set-option -g display-time 1000
set-option -g default-terminal "screen-256color"
set-option -g history-limit 2000
set-option -g renumber-windows on
set-option -g set-titles on
set-option -g set-titles-string '[tmux] #T'
# panes
set -g pane-border-fg black
set -g pane-active-border-fg brightred
## Status bar design
# status line
set -g status-utf8 on
set -g status-justify left
set -g status-bg default
set -g status-fg colour12
set -g status-interval 2
# messaging
set -g message-fg yellow
set -g message-bg black
set -g message-command-fg blue
set -g message-command-bg black
#window mode
setw -g mode-bg colour6
setw -g mode-fg colour0
# window status
# setw -g window-status-format " #F#I:#W#F "
# setw -g window-status-current-format " #F#I:#W#F "
# setw -g window-status-format "#[fg=cyan]#[bg=black] #I #[bg=cyan]#[fg=colour8] #W "
setw -g window-status-current-bg colour0
setw -g window-status-current-fg colour10
setw -g window-status-current-attr dim
setw -g window-status-bg green
setw -g window-status-fg black
setw -g window-status-attr reverse
set -g status-left ''
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
set -g default-terminal "screen-256color"
setw -g clock-mode-colour colour135
setw -g mode-attr bold
setw -g mode-fg colour196
setw -g mode-bg colour238
set -g pane-border-bg colour235
set -g pane-border-fg colour238
set -g pane-active-border-bg colour236
set -g pane-active-border-fg colour51
set -g status-position top
set -g status-bg black
set -g status-fg colour137
set -g status-attr dim
set -g status-left '[tmux] '
set -g status-right '#[fg=colour3,bg=black] [#(hostname -f)] #[fg=colour248,bg=black] %H:%M:%S '
set -g status-right-length 50
set -g status-left-length 20
setw -g window-status-current-fg colour81
setw -g window-status-current-bg black
setw -g window-status-current-attr bold
setw -g window-status-current-format ' #[fg=colour3]#I#[fg=colour172]:#[fg=colour10]#W#[fg=colour41]#F '
setw -g window-status-fg colour138
setw -g window-status-bg black
setw -g window-status-attr none
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour143]#W#[fg=colour142]#F '
setw -g window-status-bell-attr bold
setw -g window-status-bell-fg colour255
setw -g window-status-bell-bg black
set -g message-attr bold
set -g message-fg colour250
set -g message-bg colour236
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment