Skip to content

Instantly share code, notes, and snippets.

@sigman78
Created December 11, 2013 00:13
Show Gist options
  • Save sigman78/7902845 to your computer and use it in GitHub Desktop.
Save sigman78/7902845 to your computer and use it in GitHub Desktop.
current tmux conf
# Custom status
set-option -g status-utf8 on
set-option -g status-interval 1
set-option -g status-attr bright
set-option -g status-fg green
set-option -g status-bg colour0
set-option -g status-left-length 20
set-option -g status-left '#[fg=green][#[fg=red]#S#[fg=green]]#[default]'
set -g status-justify centre
set -g status-right '#[fg=green][ %m/%d %H:%M:%S ]#[default]'
setw -g window-status-current-format '#[fg=black](#I.#P#F#W)#[default]'
setw -g window-status-format '#I#F#W'
# Titles
set -g set-titles on
set -g set-titles-string "#(tmux ls | awk -F: '{print $1}' | xargs | sed 's/\ / | /g')"
# Set ability to capture on start and restore on exit window data when running an application
setw -g alternate-screen on
# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
set -s escape-time 50
set-option -g mouse-utf8 on
set-option -g mode-mouse on
set-option -g mouse-resize-pane on
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
# Mouse mode control
bind m \
set-option -g mode-mouse off \;\
set-option -g mouse-resize-pane off \;\
set-option -g mouse-select-pane off \;\
set-option -g mouse-select-window off \;\
display 'Mouse Off'
bind M \
set-option -g mode-mouse on \;\
set-option -g mouse-resize-pane on \;\
set-option -g mouse-select-pane on \;\
set-option -g mouse-select-window on \;\
display 'Mouse On'
# Switch panes with alt arrow
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Switch windows with alt+number
#bind-key -n M-1 select-window -t 1
#bind-key -n M-2 select-window -t 2
#bind-key -n M-3 select-window -t 3
#bind-key -n M-4 select-window -t 4
#bind-key -n M-5 select-window -t 5
#bind-key -n M-6 select-window -t 6
#bind-key -n M-7 select-window -t 7
#bind-key -n M-8 select-window -t 8
bind-key -n M-1 select-pane -t 0
bind-key -n M-2 select-pane -t 1
bind-key -n M-3 select-pane -t 2
bind-key -n M-4 select-pane -t 3
bind-key -n M-5 select-pane -t 4
# Change prefix key
#unbind C-b
#set -g prefix C-a
# Window highlight
set-window-option -g window-status-current-fg yellow
set-window-option -g window-status-current-bg colour7
set-window-option -g pane-active-border-fg magenta
# set-window-option -g pane-active-border-bg black
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment