Skip to content

Instantly share code, notes, and snippets.

@crazyboycjr
Last active April 16, 2021 18:23
Show Gist options
  • Save crazyboycjr/04ad1c1fed64cd19f8668a710267e716 to your computer and use it in GitHub Desktop.
Save crazyboycjr/04ad1c1fed64cd19f8668a710267e716 to your computer and use it in GitHub Desktop.
tmux.conf
set -g default-terminal "xterm-256color"
set -g mouse on
set -g history-limit 999999999
set -g repeat-time 200
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
run-shell /usr/share/tmux-resurrect/resurrect.tmux
bind a set-window-option synchronize-panes
set -sg escape-time 0
# copy to X clipboard
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe 'xclip -in -selection clipboard &> /dev/null'
bind -T copy-mode-vi MouseDown1Pane select-pane \; send -X clear-selection
unbind -T copy-mode-vi MouseDragEnd1Pane
# Move between panes with vi keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Avoid date/time taking up space
set -g status-right ''
set -g status-right-length 0
source-file ~/.tmux/tmux-gruvbox-dark.conf
@crazyboycjr
Copy link
Author

crazyboycjr commented Mar 7, 2018

set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
set -g mode-mouse on

for old version tmux

@crazyboycjr
Copy link
Author

:setw synchronize-panes on

just find it quite useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment