Skip to content

Instantly share code, notes, and snippets.

@Mimickal
Last active February 7, 2020 04:59
Show Gist options
  • Save Mimickal/481ec3c891d47a26a680582349565440 to your computer and use it in GitHub Desktop.
Save Mimickal/481ec3c891d47a26a680582349565440 to your computer and use it in GitHub Desktop.
My tmux configuration. Probably needs some work.
## Use ~ for prefix
set -g prefix `
bind ` send-key `
## Not stupid keys for splitting panes
bind-key - split-window -v
bind-key _ split-window -v
bind-key \ split-window -h
bind-key | split-window -h
## Keybinds for murdering unresponsive panes
bind-key x confirm-before kill-pane
bind-key X confirm-before kill-window
## Let us live-reload our config
bind r source-file ~/.tmux.conf
## Starts windows and panes at 1 not 0, because 0 is obnoxious
set-option -g base-index 1
set-option -g pane-base-index 1
## set status bar color, and add our name / server to the right
set-option -g status-bg colour22
set-option -g status-fg colour15
set-option -g status-left '⣿'
set-option -g status-left ' #[bold]❐ #S#[default] ⡇'
set-option -g status-right '#[bold]#(whoami) ● #H#[default] '
set-option -g status-right-length 60
set-option -g status-left-length 60
## highlight active window on status bar
set-window-option -g window-status-current-style bg=colour46,fg=black,bold
set-window-option -g window-status-current-format ' #I #W '
## set window notifications
set-option -g visual-activity on
set-window-option -g monitor-activity on
set-window-option -g automatic-rename off
## tmux window titling for X
set-option -g set-titles on
set-option -g set-titles-string '[#I] #W'
set-window-option -g automatic-rename on
set-window-option -g window-status-format ' #I #W '
set-window-option -g window-status-style bold
set-window-option -g pane-base-index 1
## enable mouse
set-option -g mouse on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment