Skip to content

Instantly share code, notes, and snippets.

@smswz
Created September 9, 2014 22:31
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 smswz/c6ce3aa52fdea9f4cdde to your computer and use it in GitHub Desktop.
Save smswz/c6ce3aa52fdea9f4cdde to your computer and use it in GitHub Desktop.
Tmux config
# Set terminal for 256 colors
set -g default-terminal "screen-256color"
# Change prefix key to Ctrl-a
set-option -g prefix C-a
unbind C-b
# Hit twice for last window
bind-key C-a last-window
# Send prefix by double a
bind-key a send-prefix
# Start at 1
set -g base-index 1
set -g renumber-windows on
# No delay between commands
set -s escape-time 0
# Automatic rename
setw -g automatic-rename on
# Use mouse scroll (use option for copy paste)
set -g mode-mouse on
# New windows open in the same path
bind c new-window -c "#{pane_current_path}"
bind-key % split-window -c "#{pane_current_path}"
bind-key '"' split-window -h -c "#{pane_current_path}"
# Status bar
set -g status-fg white
set -g status-bg colour88
set -g status-left ' '
set -g status-left-length 200
set -g status-right '#[fg=white]%a %b %d %H:%M '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment