Created
April 9, 2013 12:13
-
-
Save fxthomas/5345218 to your computer and use it in GitHub Desktop.
Tmux Configuration
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
set -g prefix C-b | |
set -g default-terminal "screen-256color" | |
set -g history-limit 20000 | |
setw -g automatic-rename | |
setw -g mode-mouse on | |
set-option -g mouse-select-pane on | |
set-option -g bell-action any | |
set-option -g visual-bell off | |
# Relax! | |
set -sg escape-time 0 | |
set -sg repeat-time 600 | |
# Reload the config. | |
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf" | |
# Saner splitting. | |
bind v split-window -h | |
bind s split-window -v | |
bind S choose-session | |
bind W choose-window | |
# Window movement | |
bind -r , select-window -t :- | |
bind -r . select-window -t :+ | |
# 256 colors please | |
set -g default-terminal "screen-256color" | |
# Bad Wolf | |
set -g status-fg white | |
set -g status-bg colour234 | |
set -g window-status-activity-attr bold | |
set -g pane-border-fg colour245 | |
set -g pane-active-border-fg colour39 | |
set -g message-fg colour16 | |
set -g message-bg colour221 | |
set -g message-attr bold | |
# Custom status bar | |
# Powerline symbols: ⮂ ⮃ ⮀ ⮁ ⭤ | |
set -g status-left-length 32 | |
set -g status-right-length 150 | |
set -g status-interval 5 | |
# Inconsolata-dz-Powerline Theme: | |
#[fg=white,bg=colour39,noreverse,bold] | |
#green hostname: fg=colour22,bg=colour148 | |
#set -g status-left '#[fg=colour235,bg=colour252,bold] ❐ #S #[fg=colour252,bg=colour238,nobold]⮀#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold]⮀' | |
#set -g status-right '#[fg=colour238,bg=colour234,nobold]⮂#[fg=colour245,bg=colour238] #h #[fg=colour252]⮂#[fg=colour235,bg=colour252,bold] ' | |
set -g window-status-format "#[fg=white,bg=colour234] #I #W " | |
set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀ #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀" | |
# Alternate Theme for shells without Inconsolata-dz-Powerline: | |
set -g status-left ' #[bold]❐ #S#[default] ⣿' | |
set -g status-right '#[bold]#(whoami) ● #H#[default] ⡇ #[fg=blue]%H:%M#[default] ' | |
# Activity | |
setw -g monitor-activity on | |
set -g visual-activity off | |
# Better name management | |
bind C new-window \; command-prompt "rename-window '%%'" | |
bind c new-window | |
bind , command-prompt "rename-window '%%'" | |
# Copy mode | |
setw -g mode-keys vi | |
bind [ copy-mode | |
unbind p | |
bind p paste-buffer | |
bind -t vi-copy v begin-selection | |
bind -t vi-copy y copy-selection | |
# Maximizing/Unmaximizing panes | |
unbind + | |
bind + new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \; swap-pane -s tmux-zoom.0 \; select-window -t tmux-zoom | |
unbind - | |
bind - last-window \; swap-pane -s tmux-zoom.0 \; kill-window -t tmux-zoom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment