#linux

tmux

memo

# rectangle selection
c-b [ 
c-v
space
jklh # move
y # select

conf

setw -g mode-keys vi
# in order to use xclip as a proxy for copy
# then idea works w/ tmux
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'

# Use v to trigger selection (instead of space)
bind-key -T copy-mode-vi v send-keys -X begin-selection

# don't rename windows automatically
# I like to give my tmux windows custom names using the , key.
set-option -g allow-rename off

# see https://github.com/tmux-plugins/tmux-sensible
# Address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 0

# Increase scrollback buffer size from 2000 to 50000 lines
set -g history-limit 50000

# Increase tmux messages display duration from 750ms to 4s
set -g display-time 4000

# Upgrade $TERM
set -g default-terminal "screen-256color"

# new panes to be open in the same current folder
# yeah confusing new-window action but works
bind  c  new-window      -c "#{pane_current_path}"
bind  %  split-window -h -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"

React ?

This page was last modified: