Skip to content

Instantly share code, notes, and snippets.

@Sulverus
Created April 17, 2015 11:32
Show Gist options
  • Save Sulverus/274567d7a8f9e20c9085 to your computer and use it in GitHub Desktop.
Save Sulverus/274567d7a8f9e20c9085 to your computer and use it in GitHub Desktop.
tmux
##
## General
##
# Set correct TERM
set-option -g history-limit 10000
set -g default-terminal "screen-256color"
# Start non-login shell
#set -g default-command "${SHELL}"
##
## Colors
##
# https://github.com/seebi/tmux-colors-solarized
# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg colour244 #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 colour166 #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 colour235 #base02
set-option -g pane-active-border-fg colour240 #base01
# message text
set-option -g message-bg colour235 #base02
set-option -g message-fg colour166 #orange
# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
# clock
set-window-option -g clock-mode-colour colour64 #green
##
## Hotkeys
##
# GNU screen prefix
#set -g prefix C-a
# One-based indexing for windows (to be consistent with Awesome)
set -g base-index 1
setw -g pane-base-index 1
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Hotkeys for windows
bind | split-window -h
bind - split-window -v
bind -n S-Right next-window
bind -n S-Left previous-window
bind -n S-down new-window
bind -n C-S-left swap-window -t -1
bind -n C-S-right swap-window -t +1
# Hotkeys for 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
setw -g mode-keys vi
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe 'xclip -selection clipboard >/dev/null'
##
## Mouse
##
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment