Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
60 lines (47 sloc) 1.49 KB
### Default Behavior
# Use screen key binding
set-option -g prefix C-f
# 1-based numbering
set -g base-index 1
# Fast command sequence - cause some error
# set -s escape-time 0
# Set scrollback to 10000 lines
set -g history-limit 10000
# Agressive window
setw -g aggressive-resize on
### Views
# Highlight Active Window
set-window-option -g window-status-current-bg red
# Status Bar
set -g status-bg black
set -g status-fg white
set -g status-left ""
set -g status-right "#[fg=green]#H"
### Shortcut
# Last Active Window
bind-key C-a last-window
# set -g mode-mouse on
# http://unix.stackexchange.com/questions/24414/shift-arrow-not-working-in-emacs-within-tmux
# terminal key bindings were breaking without this line
set-window-option -g xterm-keys on
# vi bindings
set-window-option -g mode-keys vi
# Tmux window size ( http://superuser.com/questions/238702/maximizing-a-pane-in-tmux )
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
# # Toggle mouse on with ^B m
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'
# Toggle mouse off with ^b M
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'