Last active
January 4, 2025 06:07
-
-
Save YuanLiou/e4944a2ed72e5edc05715ebaff53200d to your computer and use it in GitHub Desktop.
Ray's tmux Config 0.2
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
# Tmux Plugins Manager | |
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
# plugins: Vim Tmux navigation | |
set -g @plugin 'christoomey/vim-tmux-navigator' | |
# plugins: tmux-yank | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
# plugins: theme (Uncomment if you want to install theme) | |
# set -g @plugin 'rose-pine/tmux' | |
# set -g @rose_pine_variant 'main' | |
# Set fish as my default shell | |
set -g default-command /opt/homebrew/bin/fish | |
set -g default-shell /opt/homebrew/bin/fish | |
# Set tmux color to 256 full color | |
set-option -sa terminal-overrides ",xterm*:Tc" | |
set -g mouse on | |
# Shift arrow to switch windows | |
bind -n S-Left previous-window | |
bind -n S-Right next-window | |
# Shift Alt vim keys to switch windows | |
bind -n M-H previous-window | |
bind -n M-L next-window | |
# Start windows and panes at 1, not 0 | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
set-window-option -g pane-base-index 1 | |
set-option -g renumber-windows on | |
# Open panes at the same directory | |
bind '"' split-window -v -c "#{pane_current_path}" | |
bind % split-window -h -c "#{pane_current_path}" | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.youtube.com/watch?v=DzNmUNvnB04