Created
November 26, 2015 17:17
-
-
Save fredv/949431c82097388ffd3e to your computer and use it in GitHub Desktop.
.tmux.conf
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
#ChrisJohnson/tmux-MacOSX-pasteboard | |
#set-option -g default-command "reattach-to-user-namespace -l zsh" | |
set -g repeat-time 1000 | |
set -s escape-time 1 | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
set-option -g prefix C-a | |
set-option -g history-limit 10000 | |
# mouse stuff | |
setw -g mode-mouse off | |
set -g mouse-select-pane off | |
set -g mouse-resize-pane off | |
set -g mouse-select-window off | |
bind -r a next-window | |
bind -r Right next-window | |
bind -r A previous-window | |
bind -r Left previous-window | |
bind -n C-k clear-history | |
# status | |
set -g status-left-length 40 | |
set -g status-right-length 40 | |
set -g status-left '#(current_project)|#S|#h' | |
#set -g status-right '#(date +"%H:%M") #(~/scripts/icinga_status)' | |
set -g status-justify centre | |
set -g status-interval 10 | |
unbind % | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# VIM setting | |
# splitting | |
bind | split-window -h | |
bind v split-window -h | |
bind - split-window -v | |
bind s split-window -v | |
# resizing | |
bind -r h select-pane -L | |
bind -r j select-pane -D | |
bind -r k select-pane -U | |
bind -r l select-pane -R | |
bind -r H resize-pane -L 1 | |
bind -r J resize-pane -D 1 | |
bind -r K resize-pane -U 1 | |
bind -r L resize-pane -R 1 | |
setw -g mode-keys vi | |
bind-key -t vi-copy 'v' begin-selection | |
bind-key -t vi-copy 'V' begin-selection | |
bind-key -t vi-copy 'y' copy-selection | |
bind-key -t vi-copy 'Enter' copy-pipe "pbcopy" # for OSX | |
bind-key -t vi-copy 'y' copy-pipe "pbcopy" # for OSX | |
bind C-v run "tmux set-buffer -- \"$(pbpaste)\"; tmux paste-buffer" # for OSX | |
# bind-key -t vi-copy 'y' copy-pipe "xsel -i -b" | |
bind p paste-buffer | |
bind Escape copy-mode | |
set -g default-terminal "xterm-256color" | |
set -g status-fg "#ffffff" | |
set -g status-bg default | |
set -g status-left-fg green | |
set -g status-right-fg white | |
set -g status-right-bg black | |
set -g window-status-activity-fg black | |
set -g window-status-bell-fg blue | |
set -g mode-fg black | |
set -g mode-bg yellow | |
set -g message-fg default | |
set -g message-bg default | |
set -g message-attr default | |
set -g message-command-fg blue | |
set -g message-command-bg default | |
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 red | |
setw -g window-status-current-attr dim | |
set -g pane-border-fg default | |
set -g pane-border-bg green | |
set-option -g pane-active-border-fg red | |
set -g pane-active-border-bg default | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# send double C-a to e.g. shell | |
bind C-a send-prefix | |
set-option -g status-keys vi | |
set-option -g default-shell /bin/zsh | |
# zooming in and out | |
unbind Up | |
bind Up new-window -d -n tmp \; swap-pane -s tmp.1 \; select-window -t tmp | |
unbind Down | |
bind Down last-window \; swap-pane -s tmp.1 \; kill-window -t tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment