Created
November 19, 2015 15:44
-
-
Save agile/5213356f4ea4075b621d to your computer and use it in GitHub Desktop.
my tmux config - nothing very special
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
# unbind C-b if you prefer using screen's ^a command sequence | |
# set -g prefix C-a | |
# alt-arrow bindings to switch windows | |
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 | |
# get visual notifications of activity from other windows | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Where am I???? | |
set-window-option -g window-status-current-bg yellow | |
set-option -g mouse-select-pane on | |
# 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' | |
# Zoom a panel in | |
unbind + | |
bind + \ | |
new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \;\ | |
swap-pane -s tmux-zoom.0 \;\ | |
select-window -t tmux-zoom | |
# Zoom a panel back out | |
unbind - | |
bind - \ | |
last-window \;\ | |
swap-pane -s tmux-zoom.0 \;\ | |
kill-window -t tmux-zoom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment