Skip to content

Instantly share code, notes, and snippets.

@MikeDawg MikeDawg/tmux.conf
Last active May 7, 2019

Embed
What would you like to do?
# Use screen's prefix key
set -g prefix C-a
unbind C-b
bind-key C-a send-prefix
# Set 256 color term
set -g default-terminal "screen-256color"
# colors similar to my old screen setup
set -g status-fg black
set -g status-bg white
set -g status-attr bright
set-window-option -g window-status-current-bg blue
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-attr dim
# Activity monitoring
setw -g monitor-activity on
set -g visual-activity on
# hjkl pane traversal
#bind h select-pane -L
#bind j select-pane -D
#bind k select-pane -U
#bind l select-pane -R
#bind h up-pane
#bind l down-pane
# vim
setw -g mode-keys vi
bind [ copy-mode
#bind -t vi-copy V rectangle-toggle
bind ] paste-buffer
# reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
#open man page with /
bind / command-prompt "split-window -h 'exec man %%'"
# title A
unbind A
bind A command-prompt "rename-window %%"
# mouse-select-pane [on | off]
#set -g mouse-select-pane on
# Make easy to remember split bindings
bind | split-window -h
bind - split-window -v
# mimic screen a little more
bind C-n next-window
bind C-p previous-window
set -g history-limit 500000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.