Skip to content

Instantly share code, notes, and snippets.

@he9qi
Created June 11, 2014 19:15
Show Gist options
  • Save he9qi/89c00c949ec690a679c0 to your computer and use it in GitHub Desktop.
Save he9qi/89c00c949ec690a679c0 to your computer and use it in GitHub Desktop.
# After reloading the configuration file, we can send [command] to an application
# running within tmux simply by pressing [command] twice.
set -g prefix C-j
bind C-j send-prefix
unbind C-b
# Splitting panes
bind | split-window -h
bind - split-window -v
# Reszing panes (-r means repeatable)
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
bind j last-pane
# set -g status-justify centre
setw -g monitor-activity on
set -g visual-activity on
# Renumber windows automatically
set-option -g renumber-windows on
# Set the starting window number, was 0
set -g base-index 1
# Disable mouse (because using mouse sucks)
setw -g mode-mouse off
# Scrolling through output with copy mode
setw -g mode-keys vi
# Reload the file with Prefix r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Fix color for editor
set -g default-terminal "screen-256color"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment