Skip to content

Instantly share code, notes, and snippets.

@francois2metz
Forked from oz/tmux.conf
Created December 20, 2010 15:10
Show Gist options
  • Save francois2metz/748482 to your computer and use it in GitHub Desktop.
Save francois2metz/748482 to your computer and use it in GitHub Desktop.
# General config:
# ---------------
setw -g utf8 on
set -g lock-after-time 1800
set-window-option -g automatic-rename off
set -g default-terminal screen
# Look & feel:
# ------------
# Panes colors
set -g pane-border-fg colour8
set -g pane-active-border-fg white
# Status bar colors
set -g status-left ""
set -g status-fg white
set -g status-bg colour0
set -g status-right "%H:%M %d-%b-%y"
set -g status-utf8 on
setw -g window-status-current-bg green
setw -g window-status-current-fg black
# Keys & mouse:
# -------------
# Select pane with mouse (capture mouse clicks)
set -g mouse-select-pane on
# Use emacs keys in copy mode
setw -g mode-keys emacs
# Selection with mouse in copy mode
setw -g mode-mouse on
# Use back-tick (`) as the control key:
set-option -g prefix `
unbind-key C-b
bind-key ` send-prefix
# Toggle status
bind-key b set-option status
# Open man-page
bind-key / command-prompt "split-window 'exec man %%'"
# Open SSH connection
bind-key S command-prompt "new-window -n %1 'ssh %1'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment