Created
July 18, 2014 11:57
-
-
Save thiagogabriel/d594f2ef724241f06b20 to your computer and use it in GitHub Desktop.
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
set -g default-terminal "screen-256color" | |
set -g status-bg black | |
set -g status-fg white | |
setw -g mode-mouse on | |
set-option -g base-index 1 | |
set-option -g prefix C-a | |
unbind-key C-b | |
bind-key C-a send-prefix | |
set -g status-keys vi | |
set-window-option -g utf8 on | |
setw -g window-status-current-attr underscore | |
setw -g mode-keys vi | |
bind C-d detach | |
bind / neww 'exec top' | |
bind -r C-h resize-pane -L 5 | |
bind -r C-l resize-pane -R 5 | |
bind -r C-j resize-pane -D 5 | |
bind -r C-k resize-pane -U 5 | |
bind r source ~/.tmux.conf | |
set -g status-interval 5 | |
set -g status-right '#[fg=black,bold] %Y/%m/%d(%a)%H:%M #[default]' | |
bind \ split-window -h | |
bind - split-window -v | |
bind i display-panes | |
unbind ^A | |
bind ^A select-pane -t :.+ | |
bind C-t split-window -p 25 | |
set-option -g default-command "reattach-to-user-namespace -l zsh" # or bash... | |
bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy" | |
bind C-v run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer" | |
# Use vim keybindings in copy mode | |
setw -g mode-keys vi | |
# 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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment