Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
108 lines (85 sloc) 3.12 KB
#### basic settins
set -g default-terminal screen-256color
set -g base-index 1
set -g pane-base-index 1
# set -g bell-action any
#
# Set window notifications
# setw -g monitor-activity on
# set -g visual-activity on
set -g prefix ^e
unbind ^b
bind e send-prefix
set -g mode-keys vi
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-window on
set -g mouse-select-pane on
#### colors (Solarized dark)
#### default statusbar colors
set-option -g status-bg black #base02
set-option -g status-fg yellow #yellow
set-option -g status-attr default
#### default window title colors
set-window-option -g window-status-fg brightblue #base0
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim
#### active window title colors
set-window-option -g window-status-current-fg brightblue #base0
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
#### pane border
set-option -g pane-border-fg brightblue #base02
set-option -g pane-active-border-fg brightgreen #base01
#### message text
set-option -g message-bg black #base02
set-option -g message-fg brightred #orange
#### pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
set-option -g status on
set-option -g status-interval 1
set-option -g status-utf8 on
set -g status-left '#[fg=green]#S #[fg=black]•'
set -g status-right '#[fg=green,bg=black,bright]#(tmux-mem-cpu-load 1) #[fg=red,dim]#(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") #[fg=blue]%a%l:%M:%S %p#[default] #[fg=blue]%Y-%m-%d'
#### system clipboard
# set-option -g default-command "reattach-to-user-namespace -l zsh"
# paste clipboard into tmux buffer
# bind v run-shell "reattach-to-user-namespace -l zsh -c 'tmux set-buffer \\"$(pbpaste)\\"; tmux paste-buffer'"
# put tmux buffer into clipboard
# bind y run-shell "reattach-to-user-namespace -l zsh -c 'tmux show-buffer | pbcopy'"
#Copy tmux paste buffer to CLIPBOARD
bind C-c run "tmux show-buffer | xsel -i -b"
#Copy CLIPBOARD to tmux paste buffer and paste tmux paste buffer
bind C-v run "tmux set-buffer -- \"$(xsel -o -b)\"; tmux paste-buffer"
#Copy tmux paste buffer to CLIPBOARD
#bind C-c run "tmux show-buffer | xclip -i -selection clipboard"
##Copy CLIPBOARD to tmux paste buffer and paste tmux paste buffer
#bind C-v run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
#### easily toggle synchronization (mnemonic: e is for echo)
#### sends input to all panes in a given window.
bind e setw synchronize-panes on
bind E setw synchronize-panes off
#### copy mode mappings
unbind [
unbind p
bind y copy-mode
bind p paste-buffer
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-selection
bind -t vi-copy Escape cancel
bind -t vi-copy H start-of-line
bind -t vi-copy L end-of-line
#### window manipulation
bind s splitw -v
bind v splitw -h
bind k selectp -U
bind j selectp -D
bind h selectp -L
bind l selectp -R
bind-key J resize-pane -D
bind-key K resize-pane -U
bind-key H resize-pane -L
bind-key L resize-pane -R
bind : command-prompt
bind r source-file ~/.tmux.conf \; display "Reloaded!"