Skip to content

Instantly share code, notes, and snippets.

@hagfelsh
Created December 1, 2017 16:19
Show Gist options
  • Save hagfelsh/645929b327a6bbfa0ec1c0ef5ad320d1 to your computer and use it in GitHub Desktop.
Save hagfelsh/645929b327a6bbfa0ec1c0ef5ad320d1 to your computer and use it in GitHub Desktop.
customized tmux config file
# Mouse options
set-option -g mouse-resize-pane off
set-option -g mouse-select-pane off
set-option -g mouse-select-window off
bind m set-option -w mouse-resize-pane on \; set-option -w mouse-select-pane on \; set-option -w mouse-select-window on \;
bind M set-option -w mouse-resize-pane off \; set-option -w mouse-select-pane off \; set-option -w mouse-select-window off \; set-option -w mode-mouse off \;
# Kill the bell
set-option -g bell-action none
# Status bar things
set -g status-left '#[fg=green]#S #P'
set -g status-right '#(/home/keiser/scripts/get_tmux_mail_count/getcount.sh)'
set-option -g status-bg black
set-option -g status-fg white
set-option -g status-interval 1
set -g status-left-length 30
# activity highlighting
setw -g monitor-activity off
# Active window things
set-window-option -g window-status-current-bg black
set-window-option -g window-status-current-fg brightcyan
# Keybindings for pane splitting
bind | split-window -h
bind - split-window -v
# set scrollback history to 10000 (10k)
set -g history-limit 10000
# make tmux display things in 256 colors
set -g default-terminal "screen-256color"
# toggle synchronization across panes
bind h set -w synchronize-panes on
bind H set -w synchronize-panes off
# Set copy mode to vi
set -g mode-keys vi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment