Skip to content

Instantly share code, notes, and snippets.

@dinsley
Created February 21, 2013 18:08
Show Gist options
  • Save dinsley/5006789 to your computer and use it in GitHub Desktop.
Save dinsley/5006789 to your computer and use it in GitHub Desktop.
# Make tmux use C-a instead of C-b (just like screen!)
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Reload config file
bind r source-file ~/.tmux.conf \; display "Config Reloaded"
# Reset the escape time
set -sg escape-time 1
# Reset the repeat time
set -s repeat-time 1000
# Moving between windows
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# Clever aliases for splitting panes
bind | split-window -h
bind - split-window -v
# Moving between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resizing panes
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Mouse mode
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on
# move x clipboard into tmux paste buffer
bind y run-shell "reattach-to-user-namespace -l zsh -c 'tmux show-buffer | pbcopy'"
# Appearance
set -g default-terminal "screen-256color"
set -g status-bg "#282a2e"
set -g status-fg "#c5c8c6"
setw -g window-status-current-bg "#282a2e"
setw -g window-status-current-fg "#81a2be"
setw -g window-status-activity-fg "#8abeb7"
setw -g window-status-activity-bg "#1d1f21"
set -g pane-active-border-bg default
set -g pane-active-border-fg "#373b41"
set -g pane-border-bg default
set -g pane-border-fg "#373b41"
set -g clock-mode-colour "#81a2be"
set -g clock-mode-style 24
set -g message-bg "#8abeb7"
set -g message-fg "#000000"
set -g message-command-bg "#8abeb7"
set -g message-command-fg "#000000"
set -g mode-bg "#8abeb7"
set -g mode-fg "#000000"
set -g status-right "#(/usr/bin/battery -o tmux)"
# Copy mode
setw -g mode-keys vi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment