Created
February 6, 2015 17:30
-
-
Save thomasballinger/ca66394a940ccc1de9be to your computer and use it in GitHub Desktop.
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-option -g default-command "reattach-to-user-namespace -l bash; echo running default command now" | |
unbind C-b | |
# I'm tempted to use C-a, but I want 'beginning of line' | |
set -g prefix C-q | |
bind-key q send-prefix | |
bind-key C-q send-prefix | |
set -g history-limit 1000000 | |
set -g default-terminal "screen-256color" | |
# as per http://stackoverflow.com/questions/10158508/lose-vim-colorscheme-in-tmux-mode | |
set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
set-option -g mouse-select-pane on | |
set-option -g mouse-select-window on | |
set-window-option -g mode-mouse on | |
# vim copy mode | |
set-window-option -g mode-keys vi | |
bind-key -t vi-copy 'v' begin-selection | |
bind-key -t vi-copy 'y' copy-selection | |
# no need for escape key delay I hope | |
set -s escape-time 0 | |
set -g status on | |
# Adding option for continued holding control | |
bind-key C-n next-window | |
bind-key C-p previous-window | |
bind-key C-c new-window | |
# easy reload | |
bind R source-file ~/.tmux.conf \; display-message "Config reloaded..." | |
# Vim-like move panes | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# and let me keep holding control | |
bind C-h select-pane -L | |
bind C-j select-pane -D | |
bind C-k select-pane -U | |
bind C-l select-pane -R | |
# status bar to use with inconsolata font | |
set -g status-right '%l:%M %p %A %B %d ' | |
set -g window-status-format "#[fg=white,bg=colour234] #I #W " | |
set -g status-right '#[fg=blue]%A %D #[fg=white]%l:%M%p#[default]' | |
set -g status-left-length 32 | |
set -g status-right-length 150 | |
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 | |
set -g set-titles on | |
set -g set-titles-string '(#S):[ #I/#P:#W ] - tmux' | |
# these work better with pretty fonts maybe? | |
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 window-status-format "#[fg=white,bg=colour234] #I #W " | |
set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour25,bg=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment