Created
September 3, 2014 16:41
-
-
Save rdegges/b886b1c231d4678d7e12 to your computer and use it in GitHub Desktop.
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
##### CLEANUP | |
# Unbind the default tmux command prefix, CTRL+b. | |
unbind C-b | |
##### | |
##### PREFERENCES | |
# Use CTRL+a as our tmux command prefix. | |
set -g prefix C-a | |
# Lower the default tmux delay, this makes tmux more responsive. | |
set -s escape-time 1 | |
# Enable mouse movements. | |
#setw -g mode-mouse off | |
# | |
## Enable pane selection via the mouse. | |
#set -g mouse-select-pane on | |
# | |
## Enable the mouse to resize panes. | |
#set -g mouse-resize-pane on | |
# | |
## Enable the mouse to change the current window. | |
#set -g mouse-select-window on | |
# Make tmux use 256 colors. | |
set -g default-terminal "screen-256color" | |
# Make tmux act like xterm to prevent Vim issues: | |
set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
# Enable UTF8 characters in the status bar. | |
set -g status-utf8 on | |
# Only resize the screen size if the smaller screen user has their window | |
# active. This way my screen won't be resized to an incredibly small window | |
# unnecessarily. | |
setw -g aggressive-resize on | |
# Store a lot of history. | |
set -g history-limit 100000 | |
##### | |
##### MAPPINGS | |
# PREFIX CTRL+a: send CTRL+a to the local application. | |
bind C-a send-prefix | |
# PREFIX r: Instantly reload tmux's configuration file. | |
bind r source-file ~/.tmux.conf \; display "tmux has been reloaded!" | |
# PREFIX \: Create a new vertial pane. | |
bind \ split-window -h | |
# PREFIX -: Create a new horizontal pane. | |
bind - split-window -v | |
# Use Vim movement key mappings for switching around between panes. | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Use Vim movement key mappings (uppercase) for resizing panes. | |
bind -r H resize-pane -L 5 | |
bind -r J resize-pane -D 5 | |
bind -r K resize-pane -U 5 | |
bind -r L resize-pane -R 5 | |
##### | |
##### APPEARANCE | |
# Use Solarized colorscheme. | |
set -g status-bg black #base02 | |
set -g status-fg yellow #yellow | |
set -g status-attr default | |
# Default window title colors. | |
setw -g window-status-fg brightblue #base0 | |
setw -g window-status-bg default | |
# Active window title colors. | |
setw -g window-status-current-fg brightred #orange | |
setw -g window-status-current-bg default | |
# Pane border. | |
set -g pane-border-fg black #base02 | |
set -g pane-active-border-fg brightgreen #base01 | |
# Message text. | |
set -g message-bg black #base02 | |
set -g message-fg brightred #orange | |
# Pane number display. | |
set -g display-panes-active-colour blue #blue | |
set -g display-panes-colour brightred #orange | |
# Clock colors. | |
set -g clock-mode-colour green #green | |
# Make the left side of our status bar display the hostname. | |
set -g status-left "#H" | |
# Display the date and time on the right side of the status bar. | |
set -g status-right "%m-%d-%Y @ %r %Z" | |
# Center our windows in the status bar display. | |
set -g status-justify centre | |
# Disable window activity notifications in tmux windows. | |
setw -g monitor-activity off | |
# Refresh the status bar every 10 seconds. | |
set -g status-interval 10 | |
##### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment