Created
August 2, 2012 22:56
-
-
Save renatoi/3241666 to your computer and use it in GitHub Desktop.
Renato's tmux conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bindings | |
unbind % | |
unbind C-b | |
set -g prefix C-a | |
bind | split-window -h | |
bind - split-window -v | |
bind-key C-a last-window | |
# maximize | minimize pane | |
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 | |
# clear scrollback buffer | |
bind -n C-k clear-history | |
# set status bar | |
set -g status-bg black | |
set -g status-fg white | |
set -g status-left ‘#[fg=green]#H’ | |
# highlight active window | |
set-window-option -g window-status-current-bg red | |
# enable mouse select pane | |
#setw -g mouse-select-pane on | |
# enable mouse wheel scroll | |
#setw -g mode-mouse on | |
#bind m set -g mouse-select-pane \; set -g mouse-resize-pane \; set -g mouse-select-window \; setw -g mode-mouse | |
# reload tmux config | |
unbind r | |
bind r \ | |
source-file ~/.tmux.conf \;\ | |
display 'Reloaded tmux config.' | |
set -g mode-mouse on | |
set -g mouse-resize-pane on | |
set -g mouse-select-pane on | |
set -g mouse-select-window on | |
# Toggle mouse on | |
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 | |
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' | |
# window activity | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# automatically set window title | |
setw -g automatic-rename |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment