Skip to content

Instantly share code, notes, and snippets.

@bcremer
Last active October 30, 2018 10:09
Show Gist options
  • Save bcremer/4491339 to your computer and use it in GitHub Desktop.
Save bcremer/4491339 to your computer and use it in GitHub Desktop.
set-option -g prefix C-a
unbind-key C-b
bind-key C-a last-window
# 0 start numbering at 1
set-option -g base-index 1
# Automatically set window title
setw -g automatic-rename
bind-key space next-window
# Highlight active window
set-window-option -g window-status-current-attr bold
set-option -g default-terminal "screen-256color"
set-option -g set-titles on
set-option -g set-titles-string '#H:#S.#I.#P #W #T' # window number,program name,active (or not)
set-option -g visual-bell off
set-window-option -g window-status-current-attr bold
set-window-option -g window-status-format ' #W#F '
set-window-option -g window-status-current-format ' #W#F '
set-option -g status-bg black
set-option -g status-fg white
set-option -g status-justify centre
set-option -g status-left '#[fg=blue][#[default]#H#[fg=blue]]'
set-option -g status-right '#[fg=blue][%Y-%m-%d #[fg=default]%H:%M#[fg=blue]]'
set-option -g status-left-length 30
set-option -g status-right-length 30
# see http://stackoverflow.com/questions/13668633/split-pane-switching-in-tmux-switch-once-per-command
bind-key Up select-pane -U
bind-key Down select-pane -D
bind-key Left select-pane -L
bind-key Right select-pane -R
bind-key k select-pane -U
bind-key j select-pane -D
bind-key h select-pane -L
bind-key l select-pane -R
bind-key r source-file ~/.tmux.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment