Created
September 2, 2014 17:26
-
-
Save timtyrrell/305ebf1071c00ddae49d to your computer and use it in GitHub Desktop.
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
# fix tmux copy/paste per http://robots.thoughtbot.com/post/19398560514/how-to-copy-and-paste-with-tmux-on-mac-os-x | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
set -g default-command /bin/zsh | |
set -g default-shell /bin/zsh | |
setw -g mode-keys vi | |
set -g prefix C-a | |
# Setting the prefix from C-b to C-a | |
unbind C-b | |
bind-key C-a last-window | |
set -g history-limit 500000 | |
set -sg escape-time 1 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# VI for splitting | |
bind s split-window -v | |
bind v split-window -h | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# cycle through windows | |
bind -r C-h select-window -t :- | |
bind -r C-l select-window -t :+ | |
bind-key U send-keys -R | |
bind -r H resize-pane -L 10 | |
bind -r J resize-pane -D 10 | |
bind -r K resize-pane -U 10 | |
bind -r L resize-pane -R 10 | |
setw -g mode-mouse off | |
# set-window-option -g mode-mouse on | |
# set-option -g mouse-select-pane on | |
# set-option -g mouse-resize-pane on | |
# set-option -g mouse-select-window on | |
set -g default-terminal "screen-256color" | |
set -g status-fg white | |
set -g status-bg black | |
setw -g window-status-fg cyan | |
setw -g window-status-bg default | |
setw -g window-status-attr dim | |
setw -g window-status-current-fg white | |
setw -g window-status-current-bg green | |
setw -g window-status-current-attr bright | |
set -g pane-border-fg green | |
set -g pane-border-bg black | |
set -g pane-active-border-fg white | |
set -g pane-active-border-bg yellow | |
set -g message-fg white | |
set -g message-bg black | |
set -g message-attr bright | |
#powerline | |
set-option -g status on | |
set-option -g status-interval 2 | |
set-option -g status-utf8 on | |
set-option -g status-justify "centre" | |
set-option -g status-left-length 90 | |
set-option -g status-right-length 400 | |
set-option -g status-left "#(~/.tmux/tmux-powerline/status-left.sh)" | |
set-option -g status-right "#(~/.tmux/tmux-powerline/status-right.sh)" | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# easily toggle synchronization (mnemonic: e is for echo) | |
bind e setw synchronize-panes on | |
bind E setw synchronize-panes off | |
# control automatic window renaming | |
setw -g automatic-rename off | |
unbind [ | |
bind Escape copy-mode | |
bind-key -t vi-copy 'v' begin-selection | |
bind-key -t vi-copy 'y' copy-selection | |
bind-key -t vi-copy 'V' rectangle-toggle | |
unbind p | |
bind p paste-buffer | |
bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy" | |
bind C-v run "tmux set-buffer $(reattach-to-user-namespace pbpaste); tmux paste-buffer" | |
unbind + | |
bind + new-window -d -n tmux-zoom \; swap-pane -s tmux-zoom.1 \; select-window -t tmux-zoom | |
unbind - | |
bind - last-window \; swap-pane -s tmux-zoom.1 \; kill-window -t tmux-zoom | |
bind -r ( switch-client -p | |
bind -r ) switch-client -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment