Created
May 30, 2012 13:39
-
-
Save mgrouchy/2836378 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
# Ctrl-a is a more comfortable prefix | |
set -g prefix C-a | |
unbind C-b | |
bind C-a send-prefix | |
# Mouse stuff | |
setw -g mode-mouse on | |
setw -g mouse-select-window on | |
setw -g mouse-select-pane on | |
setw -g mouse-resize-pane on | |
# support pbcopy/pbpaste https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
# splits | |
bind v split-window -h | |
bind s split-window -v | |
bind S choose-session | |
#from Steve losh, his badwolf theme | |
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 | |
set -g status-left '#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour238,nobold]⮀#[fg=colour15,bg=colour238,bold] #( " ") #[fg=colour238,bg=colour234,nobold]⮀' | |
set -g status-right '#[fg=colour245]⮃ %R ⮃ %d %b #[fg=colour254,bg=colour234,nobold]#(rdio-current-track-tmux)⮂#[fg=colour16,bg=colour254,bold] #h ' | |
set -g window-status-format "#[fg=white,bg=colour234] #I #W " | |
set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour16,bg=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀" | |
set -g default-terminal "screen-256color" | |
# Activity | |
setw -g monitor-activity on | |
set -g visual-activity off | |
# window rename | |
bind , command-prompt "rename-window '%%'" | |
# Reload tmux config | |
bind r source-file ~/.tmux.conf \; display "Conf Reloaded..." | |
# lets copy things | |
setw -g mode-keys vi | |
unbind p | |
bind p paste-buffer | |
# vim style yank | |
bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment