Skip to content

Instantly share code, notes, and snippets.

@willtim
Created January 13, 2017 18:34
Show Gist options
  • Save willtim/37500e094897a7cdfcc3ae4fdf3abab3 to your computer and use it in GitHub Desktop.
Save willtim/37500e094897a7cdfcc3ae4fdf3abab3 to your computer and use it in GitHub Desktop.
tmux.conf for cygwin
# Tim Williams .tmux.conf
# Note: can query default bindings with tmux list-keys
# Hierarchy:
# Server
# ㄴSession
# ㄴWindow
# ㄴPane
set -g default-terminal "screen-256colors"
set -g history-limit 10000
# rebind prefix key to C-x
unbind C-b
set -g prefix C-x
bind C-x send-prefix
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# Renumber windows when a window is closed
set-option -g renumber-windows on
# Emacs window navigation
bind -n M-o select-pane -t :.+
bind C-b choose-window
# Terminal improvements
set -g terminal-overrides "xterm*:XT:smcup@:rmcup@"
set-window-option -g automatic-rename on
set-option -g set-titles on
set-option -g set-titles-string "#S / #W"
# Copy to cygwin clipboard
bind -n C-t run "tmux save-buffer - > /dev/clipboard"
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# Allows tmux to work on Cygwin
set -sg escape-time 250
# Sometimes useful
set-option -g -q mouse on
############################################################
# Zenburn colours
# default statusbar colors
set -g status-bg colour235
set -g status-fg colour248
set -g status-attr dim
# default window title colors
setw -g window-status-current-bg colour237
setw -g window-status-current-fg colour223
setw -g window-status-current-attr bold
# default window mode colors
setw -g mode-bg colour238
setw -g mode-fg colour117
setw -g mode-attr bold
# message text
set -g message-bg colour235
set -g message-fg colour117
set -g message-attr bold
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
setw -g clock-mode-colour colour117
# Tim Williams .tmux.conf
# Note: can query default bindings with tmux list-keys
# Hierarchy:
# Server
# ㄴSession
# ㄴWindow
# ㄴPane
set -g default-terminal "screen-256colors"
set -g history-limit 10000
# rebind prefix key to C-x
unbind C-b
set -g prefix C-x
bind C-x send-prefix
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# Renumber windows when a window is closed
set-option -g renumber-windows on
# Emacs window navigation
bind -n M-o select-pane -t :.+
bind C-b choose-window
# Terminal improvements
set -g terminal-overrides "xterm*:XT:smcup@:rmcup@"
set-window-option -g automatic-rename on
set-option -g set-titles on
set-option -g set-titles-string "#S / #W"
# Copy to cygwin clipboard
bind -n C-t run "tmux save-buffer - > /dev/clipboard"
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# Allows tmux to work on Cygwin
set -sg escape-time 250
# Sometimes useful
set-option -g -q mouse on
############################################################
# Zenburn colours
# default statusbar colors
set -g status-bg colour235
set -g status-fg colour248
set -g status-attr dim
# default window title colors
setw -g window-status-current-bg colour237
setw -g window-status-current-fg colour223
setw -g window-status-current-attr bold
# default window mode colors
setw -g mode-bg colour238
setw -g mode-fg colour117
setw -g mode-attr bold
# message text
set -g message-bg colour235
set -g message-fg colour117
set -g message-attr bold
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
setw -g clock-mode-colour colour117
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment