Skip to content

Instantly share code, notes, and snippets.

@bruno-
Created November 28, 2014 14:22
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 bruno-/2197a0a8e29233174380 to your computer and use it in GitHub Desktop.
Save bruno-/2197a0a8e29233174380 to your computer and use it in GitHub Desktop.
basic_tmux_conf.txt
# source tmux.conf
bind R source-file ~/.tmux.conf
# tmux defaults: prefix + arrow
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# tmux defaults:
# prefix + % - horizontal split
# prefix + " - vertical split
# all splits create a terminal in window default dir
bind "|" split-window -h -c "#{pane_current_path}"
bind "-" split-window -v -c "#{pane_current_path}"
bind "c" new-window -c "#{pane_current_path}"
# creating a new session
bind "C" command-prompt -p "new session:" "new-session -s %%"
# Fix bugs
#---------
# address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 0
# fixes pbpaste on OS X
set -g default-command "reattach-to-user-namespace -l bash"
# Options for modern machines
# ---------------------------
# utf8 is on
set -g utf8 on
set -g status-utf8 on
# increase scrollback buffer size
set -g history-limit 50000
# tmux messages are displayed for 4 seconds
set -g display-time 4000
# refresh 'status-left' and 'status-right' more often
set -g status-interval 5
# upgrade $TERM
set -g default-terminal "screen-256color"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment