Last active
February 25, 2026 06:54
-
-
Save zarzen/2d6d1b469cd87bb9b64630002f1744e7 to your computer and use it in GitHub Desktop.
tmux config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 1. 告诉 tmux 内部使用正确的终端类型 | |
| set -g default-terminal "tmux-256color" | |
| # 2. 开启 True Color 支持 | |
| # 因为 Termux 外部报 xterm-256color,我们需要匹配这个外壳并开启 RGB | |
| set -as terminal-features ",xterm-256color:RGB" | |
| # 3. 确保 Emacs 这种程序能正确识别并使用 | |
| set -as terminal-overrides ",xterm-256color:Tc" | |
| # Undercurl | |
| set-option -g default-terminal "tmux-256color" | |
| set-option -sa terminal-overrides ",xterm*:Tc" | |
| set -g mouse on | |
| unbind C-b | |
| set -g prefix C-t | |
| bind C-t send-prefix | |
| # List of plugins | |
| # this requires install tpm | |
| set -g @plugin 'tmux-plugins/tpm' | |
| set -g @plugin 'tmux-plugins/tmux-sensible' | |
| set -g @plugin 'dreamsofcode-io/catppuccin-tmux' | |
| set -g @plugin 'tmux-plugins/tmux-yank' | |
| # Other examples: | |
| # set -g @plugin 'github_username/plugin_name' | |
| # set -g @plugin 'github_username/plugin_name#branch' | |
| # set -g @plugin 'git@github.com:user/plugin' | |
| # set -g @plugin 'git@bitbucket.com:user/plugin' | |
| # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
| run '~/.tmux/plugins/tpm/tpm' | |
| bind '"' split-window -v -c "#{pane_current_path}" | |
| bind % split-window -h -c "#{pane_current_path}" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install
tpmplugin: