Skip to content

Instantly share code, notes, and snippets.

@pauldub
Created September 10, 2014 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pauldub/81906fc3dec4efea720f to your computer and use it in GitHub Desktop.
Save pauldub/81906fc3dec4efea720f to your computer and use it in GitHub Desktop.
# Set Ctrl+A as escape sequence
set -g prefix C-a
unbind C-b
# For nested tmuxes use Ctrl+A A <command>
bind a send-prefix
# Lower escape time, make tmux more responsive
set -g escape-time 0
# Windows indexes start at 1
set -g base-index 1
set -g history-limit 100000
# Better resizing policy
setw -g aggressive-resize on
setw -g monitor-activity on
set -g visual-activity off
# Force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# Use vi bindings to move around buuffers
set -g mode-keys vi
# Vim like bindings to change window
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Move pane to next/previous window
bind -n M-k move-pane -t ':+'
bind -n M-j move-pane -t ':-'
# Same to cycle through windows
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# And to resize 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
# Quick pane cycling
unbind ^A
bind ^A select-pane -t :.+
# Pane border colors
set -g pane-border-fg green
set -g pane-border-bg black
set -g pane-active-border-fg white
set -g pane-active-border-bg black
# Message prompt color
set -g message-bg black
set -g message-fg white
set -g message-attr bright
# Status bar
setw -g status-bg black
setw -g status-fg white
setw -g status-attr dim
setw -g window-status-current-bg red
setw -g window-status-current-fg default
setw -g window-status-current-attr bright
set -g status-justify left
set -g status-left ""
set -g status-right-length 50
set -g status-right "#(wemux status_users) #[fg=yellow]#S:#I.#P#[fg=white]/#[fg=green]$USER#[fg=white]/#h#[fg=white]/#[fg=yellow]#(date +%H:%M:%S)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment