Last active
March 15, 2016 10:02
-
-
Save b13n1u/6c277ca91871a723a4be to your computer and use it in GitHub Desktop.
my basic tmux.conf
This file contains 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
# use UTF8 | |
set -g utf8 | |
set-window-option -g utf8 on | |
set-option -g status-utf8 on | |
#display things in 256 colors | |
set -g default-terminal "screen-256color" | |
#scrollback history to 10000 lines | |
set -g history-limit 10000 | |
#set C-a like in screen | |
unbind C-b | |
set-option -g prefix C-a | |
#resize window on nonactive(screen a like) | |
setw -g aggressive-resize on | |
#C-a a behavior (tmux in tmux) | |
bind-key a send-prefix | |
#supposedly fixes pausing in vim | |
set-option -sg escape-time 1 | |
#mouse | |
#set-window-option -g mode-mouse on | |
#set-option -g mouse-select-pane on | |
#set-option -g mouse-resize-pane on | |
#set-option -g mouse-select-window on | |
# Toggle mouse on with 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 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' | |
#In tmux 2.1 the mouse mode setting changed | |
# Toggle mouse on with m | |
#bind m \ | |
set -g mouse on \;\ | |
display 'Mouse: ON' | |
# Toggle mouse off with M | |
bind M \ | |
set -g mouse off \;\ | |
display 'Mouse: OFF' | |
#highlight active window | |
set-window-option -g window-status-current-bg red | |
#use vim keybinding in copy mode | |
setw -g mode-keys vi | |
# vim visual mode | |
bind-key -t vi-copy v begin-selection | |
bind-key -t vi-copy y copy-selection | |
# enter to copy selection | |
unbind -t vi-copy Enter | |
bind-key -t vi-copy Enter copy-selection | |
#visual line column | |
bind -t vi-copy V rectangle-toggle | |
#yank to end of line | |
bind -t vi-copy Y copy-end-of-line | |
# Disable Esc-Wait | |
set-option -sg escape-time 0 | |
#split join windows panes | |
bind-key j command-prompt -p "join pane from:" "join-pane -s ':%%'" | |
bind-key s command-prompt -p "send pane to:" "join-pane -t ':%%'" | |
#zoom in zoom out 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 | |
######## | |
#COLORS# | |
######## | |
# set pane colors - hilight the active pane | |
set-option -g pane-border-fg colour235 #base02 | |
set-option -g pane-active-border-fg colour240 #base01 | |
# color messages in the command line | |
set-option -g message-bg black #base02 | |
set-option -g message-fg brightred #orange | |
# set color for status bar | |
set-option -g status-bg colour235 #base02 | |
set-option -g status-fg yellow #yellow | |
set-option -g status-attr dim | |
# set window list colors - red for active and cyan for inactive | |
set-window-option -g window-status-fg brightblue #base0 | |
set-window-option -g window-status-bg colour236 | |
set-window-option -g window-status-attr dim | |
set-window-option -g window-status-current-fg brightred #orange | |
set-window-option -g window-status-current-bg colour236 | |
set-window-option -g window-status-current-attr bright | |
# bind key for synchronizing panes | |
bind-key y set-window-option synchronize-panes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment