Created
April 4, 2013 01:02
-
-
Save ngpestelos/5306857 to your computer and use it in GitHub Desktop.
keikun tmux conf
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
# remap prefix to Control + a | |
set -g prefix C-a | |
unbind C-b | |
bind C-a send-prefix | |
# force a reload of the config file | |
unbind r | |
bind r source-file ~/.tmux.conf | |
# quick pane cycling | |
unbind ^A | |
bind ^A select-pane -t :.+ | |
# Tell tmux we can use 256 colors | |
set -g default-terminal "screen-256color" | |
# set -g mode-mouse on | |
setw -g mouse-select-window on | |
setw -g mouse-select-pane on | |
# Copy mode | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy" | |
set -g status-left-length 52 | |
set -g status-right-length 451 | |
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 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]⮀" | |
# mouse scroll | |
setw -g mode-mouse on | |
bind < resize-pane -L 4 | |
bind > resize-pane -R 4 | |
bind - resize-pane -D 4 | |
bind + resize-pane -U 4 | |
# Clear screen and scrollback | |
# https://github.com/keikun17/kodigo/blob/master/tmux.md | |
bind-key b send-keys -R \; clear-history |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment