Skip to content

Instantly share code, notes, and snippets.

@mutcianm
Created January 29, 2020 12:34
Show Gist options
  • Save mutcianm/0b97dba42d038a4926393e70a3570ea6 to your computer and use it in GitHub Desktop.
Save mutcianm/0b97dba42d038a4926393e70a3570ea6 to your computer and use it in GitHub Desktop.
tmux.conf
set -g base-index 1 # start windows numbering at 1
new zsh # auto start zsh when opening a new pane
unbind C-b # replace default leader with a backtick
set -g prefix `
bind ` send-prefix
set -g default-terminal "screen-256color" # colors!
set repeat-time 100 # drop leader key faster to reclaim input after a command
setw -g xterm-keys on # what is this for?
setw -q -g utf8 on # enable unicode support just in case
set -g history-limit 5000 # bump scrollback buffer limit
setw -g pane-base-index 1 # make pane numbering consistent with windows
setw -g automatic-rename on # rename window to reflect current program
set -g renumber-windows on # renumber windows when a window is closed
set -g set-titles on # set terminal title
set -g status-interval 10 # redraw status line every 10 seconds in case we missed automatic update
set -g monitor-activity on # activity
set -g visual-activity off
unbind % # rebind split window keys
bind \\ split-window -v
bind | split-window -h
set -g mouse on # start with mouse mode enabled
# status line
set status-right "" # no useless info to the right plz
set -g status-style bg='blue',fg='white'
set -g status-left '#{?client_prefix,#[bg=red],} ◆ ' # turn red if leader is active
set -ga status-left '#{?window_zoomed_flag,#[bg=yellow] ↕ ,}' # show yellow arrow if pane is in zoom mode
set -g window-status-current-format "#[fg=white]#[bg=green][#I#F#W]"
set -g window-status-format "[#I#F#W]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment