Created
November 5, 2018 21:21
-
-
Save renanlage/d5d1b3bdc6adf3adb8338a3db7ee4647 to your computer and use it in GitHub Desktop.
tmux conf file
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
# set Zsh as your default Tmux shell | |
set-option -g default-shell /usr/bin/zsh | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
# Tmux should be pretty, we need 256 color for that | |
set -g default-terminal "screen-256color" | |
# Keep unattached session alive after closing tmux | |
set-option -g destroy-unattached off | |
# command delay? We don't want that, make it short | |
set -sg escape-time 1 | |
# Scrollback limit | |
set -g history-limit 30000 | |
# Prevent unwanted exit with C-d | |
set-environment -g 'IGNOREEOF' 2 | |
# Highlight the window in which activity (output written) took place | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Highlight current window as yellow | |
set-window-option -g window-status-current-bg yellow | |
# Set the numbering of windows to go from 1 instead | |
# of 0 - silly programmers :| | |
set-option -g base-index 1 | |
setw -g pane-base-index 1 | |
# Renumber windows sequentially after closing any of them | |
set -g renumber-windows on | |
# soften status bar color from harsh green to light gray | |
# set -g status-bg '#666666' | |
# set -g status-fg '#aaaaaa' | |
# remove administrative debris (session name, hostname, time) in status bar | |
set -g status-left '' | |
set -g status-right '' | |
# Use Alt arrow keys without prefix to switch panes | |
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 | |
# Shift arrow to switch windows | |
bind -n S-Left previous-window | |
bind -n S-Right next-window |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment