Created
August 20, 2014 07:05
-
-
Save joshhunt/fff4ec4ec63b0261ad64 to your computer and use it in GitHub Desktop.
Tmux config
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 proper character encoding | |
set -g utf8 | |
set -g status-utf8 on | |
set-window-option -g utf8 on | |
# Make tmux display things in 256 colors | |
set -g default-terminal "screen-256color" | |
# Set scrollback history to 10000 (10k) | |
set -g history-limit 10000 | |
# Renumber windows when closing them. | |
set -g renumber-windows on | |
# Don't index panes and windows from 0 | |
set-option -g base-index 1 | |
setw -g pane-base-index 1 | |
# Turn on mouse mode for everything | |
set-option -g mode-mouse on | |
set-option -g mouse-resize-pane on | |
set-option -g mouse-select-pane on | |
set-option -g mouse-select-window on | |
# And some handy shortcuts for switching panes, but you probably | |
# won't use them because we have mouse mode turned on | |
bind-key Up select-pane -U | |
bind-key Down select-pane -D | |
bind-key Left select-pane -L | |
bind-key Right select-pane -R | |
# Handy shortcuts for splitting the pane | |
bind | split-window -h | |
bind - split-window -v | |
# Rebind the prefix key to something easier | |
set -g prefix C-a | |
bind a send-prefix | |
# Sync panes to type in all panes at once. Useful for | |
# administrating multiple servers at once | |
bind C-s set-window-option synchronize-panes | |
# reload ~/.tmux.conf using PREFIX r | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
## Use ` for renaming the window prompt. | |
unbind ',' | |
bind ` command-prompt -I '#W' "rename-window '%%'" | |
# ---------------------- | |
# set some pretty 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 | |
# colorize messages in the command line | |
set-option -g message-bg black #base02 | |
set-option -g message-fg brightred #orange |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment