Skip to content

Instantly share code, notes, and snippets.

@jinzhongjia
Last active September 15, 2023 09:38
Show Gist options
  • Save jinzhongjia/693696e0bc8779442b626ad3f3e1a7c8 to your computer and use it in GitHub Desktop.
Save jinzhongjia/693696e0bc8779442b626ad3f3e1a7c8 to your computer and use it in GitHub Desktop.
tmux config
# first you need to install tpm
# enable true color support
set -g default-terminal "screen-256color"
set -sa terminal-features ',xterm-256color:RGB'
set -g focus-events on
set -sg escape-time 10
# enable mouse support
set -g mouse on
set -g mode-keys vi
### Copy Mode
bind-key -T copy-mode-vi 'v' send -X begin-selection # start selecting text with "v"
bind-key -T copy-mode-vi 'y' send -X copy-selection # copy text with "y"
unbind r
bind r source-file ~/.tmux.conf
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'catppuccin/tmux'
set -g @catppuccin_status_modules "application directory date_time"
run '~/.tmux/plugins/tpm/tpm' # Initialize TPM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment