Created
May 20, 2015 07:54
-
-
Save hedgerworkco/36ccfe0977461128dfa5 to your computer and use it in GitHub Desktop.
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
# Example tmux.conf | |
# 2014.10 | |
### General | |
########################################################################### | |
# Enable UTF-8 | |
setw -g utf8 on | |
set-option -g status-utf8 on | |
# Scrollback/History limit | |
set -g history-limit 2048 | |
# Index Start | |
set -g base-index 1 | |
# Mouse | |
set-option -g mouse-select-pane on | |
# Force reload of config file | |
unbind r | |
bind r source-file ~/.tmux.conf | |
# Wrapper Pasteboard Workaround | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
### Keybinds | |
########################################################################### | |
# Unbind C-b as the default prefix | |
unbind C-b | |
# Set new default prefix | |
set-option -g prefix ` | |
# Return to previous window when prefix is pressed twice | |
bind C-a last-window | |
bind ` last-window | |
# Allow swapping C-a and ` using F11/F12 | |
bind F11 set-option -g prefix C-a | |
bind F12 set-option -g prefix ` | |
# Keybind preference | |
setw -g mode-keys vi | |
set-option -g status-keys vi | |
# Moving between panes with vim movement keys | |
# bind Left resize-pane -L 10 | |
# bind Down resize-pane -D 10 | |
# bind Up resize-pane -U 10 | |
# bind Right resize-pane -R 10 | |
# Window Cycle/Swap | |
bind e previous-window | |
bind f next-window | |
bind E swap-window -t -1 | |
bind F swap-window -t +1 | |
# Easy split pane commands | |
bind = split-window -h | |
bind - split-window -v | |
unbind '"' | |
unbind % | |
# Activate inner-most session (when nesting tmux) to send commands | |
bind a send-prefix | |
### Theme | |
########################################################################### | |
# Statusbar Color Palatte | |
set-option -g status-justify left | |
set-option -g status-bg black | |
set-option -g status-fg white | |
set-option -g status-left-length 40 | |
set-option -g status-right-length 80 | |
# Pane Border Color Palette | |
set-option -g pane-active-border-fg green | |
set-option -g pane-active-border-bg black | |
set-option -g pane-border-fg white | |
set-option -g pane-border-bg black | |
# Message Color Palette | |
set-option -g message-fg black | |
set-option -g message-bg green | |
# Window Status Color Palette | |
setw -g window-status-bg black | |
setw -g window-status-current-fg green | |
setw -g window-status-bell-attr default | |
setw -g window-status-bell-fg red | |
setw -g window-status-content-attr default | |
setw -g window-status-content-fg yellow | |
setw -g window-status-activity-attr default | |
setw -g window-status-activity-fg yellow | |
### UI | |
########################################################################### | |
# Notification | |
setw -g monitor-activity on | |
set -g visual-activity on | |
set-option -g bell-action any | |
set-option -g visual-bell off | |
# Automatically set window titles | |
set-option -g set-titles on | |
set-option -g set-titles-string '#H:#S.#I.#P #W #T' # window number,program name,active (or not) | |
# Statusbar Adjustments | |
set -g status-left "#[fg=red] #H#[fg=green]:#[fg=white]#S#[fg=green] |#[default]" | |
# Show performance counters in statusbar | |
# Requires https://github.com/thewtex/tmux-mem-cpu-load/ | |
set -g status-interval 4 | |
set -g status-right "#[fg=green] | #[fg=white]#(tmux-mem-cpu-load)#[fg=green] | #[fg=cyan]%H:%M #[default]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment