Created
June 25, 2015 19:47
-
-
Save cbosco/1d0d933e758c42294e97 to your computer and use it in GitHub Desktop.
Terry Li's tmux config
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
unbind C-b | |
set -g prefix C-a | |
bind C-a send-prefix | |
bind-key C-a last-window | |
set -g default-terminal "screen-256color" | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
set -g status on | |
set -g history-limit 1000000 | |
set -g status-bg green | |
setw -g window-status-current-bg cyan | |
setw -g window-status-current-attr bold | |
set -g status-right '#7H | %F %s' | |
set -g status-left ‘#[fg=green]#H’ | |
set-window-option -g mode-keys vi | |
set -g status-keys vi | |
setw -g mode-keys vi | |
bind-key -t vi-copy 'v' begin-selection | |
bind-key -t vi-copy 'y' copy-pipe "reattach-to-user-namespace pbcopy" | |
# Update default binding of `Enter` to also use copy-pipe | |
unbind -t vi-copy Enter | |
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy" | |
unbind r | |
bind r source-file ~/.tmux.conf | |
# Remap window navigation to vim | |
unbind-key j | |
bind-key j select-pane -D | |
unbind-key k | |
bind-key k select-pane -U | |
unbind-key h | |
bind-key h select-pane -L | |
unbind-key l | |
bind-key l select-pane -R | |
# Set window notifications | |
setw -g monitor-activity on | |
set -g visual-activity on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment