Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
98 lines (75 sloc) 1.94 KB
set-option -g default-command "reattach-to-user-namespace -l zsh"
set -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
set -g history-limit 8192
# Use VI
set-window-option -g mode-keys vi
# Kill
unbind ^k
bind ^k confirm-before "kill-window"
unbind ^x
bind ^x kill-pane
# Reload config
unbind r
bind r source-file ~/.tmux.conf
# I heard you run Tmux inside your Tmux.
# You can now use C-b b <command> to send commands to the nested multiplexer.
unbind b
bind-key b send-prefix
# Horizontal and vertical splits
unbind '\'
bind '\' split-window -h
unbind -
bind - split-window
# Renumber windows
unbind ^r
bind ^r run "$DOTFILES_DIR/tmux/renumber-tmux-windows"
# Go to the last active window
bind-key C-b last-window
# Cycle through panes
unbind a
bind a select-pane -t :.+1
# Go to a specific pane
unbind ^t
bind ^t command-prompt "select-pane -t %%"
unbind h
bind h select-pane -L
unbind j
bind j select-pane -D
unbind k
bind k select-pane -U
unbind l
bind l select-pane -R
# Resize panes
unbind >
bind > resize-pane -R 8
unbind <
bind < resize-pane -L 8
unbind ^j
bind ^j resize-pane -D 4
unbind ^k
bind ^k resize-pane -U 4
unbind ^u
bind ^u resize-pane -D 1
unbind ^i
bind ^i resize-pane -U 1
# Set pane numbering to start from 1
set -g base-index 1
set -g pane-base-index 1
# Status bar
set-option -g status on
set-option -g status-interval 2
set-option -g status-justify "centre"
set-option -g status-left " "
set-option -g status-right " "
set-option -g status-fg white
set-option -g status-bg "#242424"
set-option -g message-fg white
set-option -g message-bg "#242424"
set-window-option -g window-status-fg "#8f96a1"
set-window-option -g window-status-bg "#242424"
set-window-option -g window-status-current-fg cyan
set-window-option -g window-status-current-bg "#242424"
set-window-option -g clock-mode-colour green
# Only resize windows if a smaller client is currently viewing it
setw -g aggressive-resize on