Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (52 sloc) 1.72 KB
# Set environment variables
run-shell "tmux setenv -g TMUX_VERSION $(tmux -V | cut -d' ' -f2)"
# Rebind C-a to be the default command sequence
set-option -g prefix C-a
unbind-key C-b
# Nested tmux
bind-key a send-prefix
# Set escape time to 0
set-option -sg escape-time 0
# Set the default terminal to screen-256color
set -g default-terminal "screen-256color"
# Bind reload key
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# That #hjkllife
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key H previous-window
bind-key L next-window
# Set Window Notifications
setw -g monitor-activity on
set -g visual-activity on
# Highlight active window
set-window-option -g window-status-current-bg white
# Set history limit
set-option -g history-limit 4000
# Tip: list-keys -t vi-copy
# Shows all vi-copy commands
# List all paste buffers.
# - Delete the most recently copied buffer of text.
# = Choose which buffer to paste interactively from a list.
# [ Enter copy mode to copy text or view the history.
# ] Paste the most recently copied buffer of text.
# vi Mode
set-window-option -g mode-keys vi
# Add some vi comfort
unbind p
bind p paste-buffer
# Use vi-style key bindings in copy and choice modes
set -g mode-keys vi
# Check version due to bind changes in 2.4. bc return true as 1
if-shell '[ $(echo "$TMUX_VERSION >= 2.4" | bc -l) == 1 ]' \
bind-key -T copy-mode-vi v send -X begin-selection; \
bind-key -T copy-mode-vi y send -X copy-selection; \
bind-key -T copy-mode-vi V send -X rectangle-toggle; \
" "\
bind -t vi-copy v begin-selection; \
bind -t vi-copy y copy-selection; \
bind -t vi-copy V rectangle-toggle; \
You can’t perform that action at this time.