Last active
August 2, 2017 14:41
-
-
Save ccarrasc/16c87f5ecf7cbe24729f54faca2738a7 to your computer and use it in GitHub Desktop.
Simple tmux config (macOS)
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
setw -g mode-keys vi | |
set -g mouse on | |
set -g base-index 1 | |
set -g default-terminal "screen-256color" | |
# Panes | |
setw -g pane-base-index 1 | |
set -g pane-border-fg colour236 | |
set -g pane-active-border-fg colour030 | |
# Status bar | |
set -g display-time 0 | |
set -g status-interval 5 | |
set -g status-position top | |
set -g status-justify left | |
set -g status-left-style "fg=colour037" | |
set -g status-right-style "fg=colour037" | |
set -g status-bg colour234 | |
set -g message-fg colour255 | |
set -g message-bg colour202 | |
setw -g window-status-style "fg=colour251" | |
setw -g window-status-current-style "bg=colour030,fg=colour251" | |
# Use - and | for pane splitting | |
unbind '"' | |
unbind % | |
bind | split-window -h | |
bind - split-window -v | |
# Copy mouse selection to clipboard | |
# $ brew install reattach-to-user-namespace --with-wrap-pbcopy-and-pbpaste | |
bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy' | |
bind-key -T copy-mode MouseDragEnd1Pane send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy' | |
# Reload | |
bind r source-file ~/.tmux.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment