Skip to content

Instantly share code, notes, and snippets.

@sarahhodne
Last active December 22, 2015 09:49
Show Gist options
  • Save sarahhodne/6454683 to your computer and use it in GitHub Desktop.
Save sarahhodne/6454683 to your computer and use it in GitHub Desktop.
#!/bin/bash
pluginpath="$(dirname "$(readlink -f $0)")"
ln -svf "$pluginpath/tmux.conf" "$HOME/.tmux.conf"
set -g default-terminal 'screen-256color'
# act like vim
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
# act like GNU screen
unbind C-b
set -g prefix C-a
# start window numbers at 1 to match keyboard order with tmux window order
set -g base-index 1
# renumber windows sequentially after closing any of them
set -g renumber-windows on
# increase scrollback lines
set -g history-limit 100000
# swith to last pane
bind-key C-a last-pane
# Rainbarf
set-option -g status-utf8 on
set -g status-right '#(rainbarf --rgb)'
# 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
# active window title colors
set-window-option -g window-status-current-fg brightred
set-window-option -g window-status-current-bg default
# pane border
set-option -g pane-border-fg black #base02
set-option -g pane-active-border-fg brightgreen
# message text
set-option -g message-bg black
set-option -g message-fg brightred
# pane number display
set-option -g display-panes-active-colour blue
set-option -g display-panes-colour brightred
# clock
set-window-option -g clock-mode-colour green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment