Skip to content

Instantly share code, notes, and snippets.

@sayan3296
Created May 7, 2023 16:03
Show Gist options
  • Save sayan3296/a3586f3f2bfaa35aaa2b3551c27da5f0 to your computer and use it in GitHub Desktop.
Save sayan3296/a3586f3f2bfaa35aaa2b3551c27da5f0 to your computer and use it in GitHub Desktop.
Basic tmux config
# Set the prefix to Ctrl+a
set -g prefix C-a
# Remove the old prefix
unbind C-b
# Send Ctrl+a to applications by pressing it twice
bind C-a send-prefix
# use mouse and enable scrolling
set -g mouse
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'"
# scroll back buffer
set -g history-limit 100000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment