Skip to content

Instantly share code, notes, and snippets.

@nailor
Created May 11, 2015 09:32
Show Gist options
  • Save nailor/cebfca57f152e779ee55 to your computer and use it in GitHub Desktop.
Save nailor/cebfca57f152e779ee55 to your computer and use it in GitHub Desktop.
set-option -g prefix C-z
unbind-key C-b
bind-key C-z last-window
bind-key z send-prefix
bind-key A command-prompt "rename-window %%"
set -g base-index 1
set -g default-terminal "screen-256color"
set-option -g history-limit 10000
# set-option -g default-terminal "screen-256color"
set-option -g default-command "reattach-to-user-namespace -l /usr/local/bin/bash"
set-option -g mouse-select-pane on
set-option -g mouse-resize-pane on
setw -g mode-mouse on
set-option -g status-keys emacs
set-option -g bell-action any
set-option -g visual-bell off
setw -g mode-keys emacs
setw -g monitor-activity on
set-window-option -g automatic-rename on
set-option -g set-titles on
set-option -g set-titles-string '(#I) #T'
set -g visual-activity off
#bind p previous-window
#bind n next-window
setw -g utf8 on
set -ga terminal-overrides "rxvt*:XT:smcup@:rmcup@"
set-option -g status on
set-option -g status-utf8 on
set-option -g status-justify centre
set-option -g status-bg colour234
set-option -g status-fg colour250
set-option -g window-status-bell-bg colour196
set-option -g window-status-bell-fg colour234
set-option -g window-status-activity-bg colour231
set-option -g window-status-activity-fg colour234
set-option -g window-status-content-bg colour234
set-option -g window-status-bg colour234
set-option -g window-status-current-bg colour234
set-option -g window-status-current-fg colour34
set-option -g mode-bg colour28
set-option -g window-status-format '#I:#W#F'
set-option -g pane-active-border-fg green
set-option -g pane-active-border-bg black
set-option -g pane-border-fg white
set-option -g pane-border-bg black
set-option -g message-fg black
set-option -g message-bg colour28
#setw -g mode-bg black
# setw -g window-status-bg black
# setw -g window-status-current-fg green
#setw -g window-status-alert-attr default
#setw -g window-status-alert-fg red
#set -g status-left '#[fg=red]#H #[fg=green][#[default]'
set -g status-right ''
set -g status-left ''
#set -g status-right '#[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default] '
set -g history-limit 4096
set -g escape-time 0
bind r source-file ~/.tmux.conf \; display "Reloaded configuration"
#CLIPBOARD selection integration
#Requires prefix key before the command key
#Copy tmux paste buffer to CLIPBOARD
bind C-c run "tmux show-buffer | xclip -i -selection p -selection c"
#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"
unbind [
bind Escape copy-mode
bind y paste-buffer
bind C-s setw synchronize-panes
bind C-p pipe-pane -o "cat >>~/#W.log" \; display "Toggled logging to ~/#W.log"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment