Skip to content

Instantly share code, notes, and snippets.

@xee5ch
Created April 8, 2014 22:26
Show Gist options
  • Save xee5ch/10202419 to your computer and use it in GitHub Desktop.
Save xee5ch/10202419 to your computer and use it in GitHub Desktop.
My Current .tmux.conf
# Change default binding key.
unbind C-b
set -g prefix \\
bind \ send-prefix
# Greatly expand scrollback history
set -g history-limit 10000
# Mouse configuration
#setw -g mode-mouse on
# Set key mode
set -gw mode-keys emacs
set -gw status-keys emacs
# r reloads the configuration, handy
bind r source-file ~/.tmux.conf
# UTF8 options
set-option -g default-terminal "screen-256color"
set-option -g status-utf8 on
# Update environment variables
set -ga update-environment "DISPLAY GPG_AGENT_INFO SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY"
# Copy and paste configuration
#
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"
# Session settings
new -s main
# status bar options
#
#
set -g status-interval 2
source '/usr/share/tmux/powerline.conf'
#### COLOUR (Solarized dark)
#
# From: https://github.com/solarized/tmux-colors-solarized
#
# 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 brightred #orange
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 black #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
# clock
set-window-option -g clock-mode-colour green #green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment