Skip to content

Instantly share code, notes, and snippets.

@katsuma
Created July 20, 2013 09:52
Show Gist options
  • Save katsuma/6044484 to your computer and use it in GitHub Desktop.
Save katsuma/6044484 to your computer and use it in GitHub Desktop.
# global prefix
set-option -g prefix C-t
bind-key C-t send-prefix
unbind-key C-b
# split window
bind-key s split-window -h
bind-key v split-window
# copy mode by vi bind
set-window-option -g mode-keys vi
# reload config file
bind r source-file ~/.tmux.conf; display-message "Reload configuration file..."
# Setup 'v' to begin selection as in Vim
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"
# status
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 status-left '#[fg=colour235,bg=colour252,bold] ❐ #S #[fg=colour252,bg=colour238,nobold]⮀#[fg=colour245,bg=colour238,bold] #(~/.tmux/status-right.sh) #[fg=colour236,bg=colour234,nobold]⮀'
set -g window-status-format "#[fg=white,bg=colour234,nobold]#I #(~/.tmux/echo-directory `pwd`) #[fg=colour238,bg=colour234,nobold]⮁"
set -g window-status-current-format "#[fg=colour232,bg=colour39,nobold]⮀#[fg=colour235,bg=colour39,noreverse,bold] #I ⮁ $PWD #[fg=colour39,bg=colour234]⮀"
set -g status-right ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment