Skip to content

Instantly share code, notes, and snippets.

@pung96
Created November 3, 2014 03:01
Show Gist options
  • Save pung96/3b4ab9b0dbe32d0a8d5e to your computer and use it in GitHub Desktop.
Save pung96/3b4ab9b0dbe32d0a8d5e to your computer and use it in GitHub Desktop.
setw -g automatic-rename off
setw -g utf8 on
setw -g mode-keys vi
setw -g xterm-keys on
# Make it use C-a, similar to screen..
unbind C-b
unbind l
set -g prefix C-a
bind-key C-a last-window
bind a send-prefix
bind-key s set-window-option synchronize-panes
bind m \
set -g mode-mouse on \;\
set -g mouse-resize-pane on \;\
set -g mouse-select-pane on \;\
set -g mouse-select-window on \;\
display 'Mouse: ON';
bind M \
set -g mode-mouse off \;\
set -g mouse-resize-pane off \;\
set -g mouse-select-pane off \;\
set -g mouse-select-window off \;\
display 'Mouse: OFF';
unbind +
bind + \
new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \;\
swap-pane -s tmux-zoom.0 \;\
select-window -t tmux-zoom ;
unbind -
bind - \
last-window \;\
swap-pane -s tmux-zoom.0 \;\
kill-window -t tmux-zoom;
bind-key h selectp -L
bind-key j selectp -D
bind-key k selectp -U
bind-key l selectp -R
bind-key Space next
bind-key BSpace prev
bind-key A command-prompt "rename-window '%%'"
# Reload key
bind r source-file ~/.tmux.conf
set -g default-terminal "xterm-256color"
set -g history-limit 10000
# Default colors
set -g status-bg black
set -g status-fg white
# Left side of status bar
set -g status-left-length 20
set -g status-left '#[fg=green][#[bg=black,fg=cyan]#S#[bg=black,fg=blue,dim]:#H#[fg=green]]'
# Inactive windows in status bar
set-window-option -g window-status-format '#[fg=cyan,dim]#I#[fg=blue]:#[default]#W#[fg=grey,dim]#F'
# Current or active window in status bar
set-window-option -g window-status-current-format '#[bg=blue,fg=cyan,bold]#I#[bg=blue,fg=cyan]:#[fg=white]#W#[fg=dim]#F'
# Right side of status bar
set -g status-right '#[fg=green][#[fg=white]#T#[fg=green]][#[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default]#[fg=green]]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment