Skip to content

Instantly share code, notes, and snippets.

@YuanLiou
Last active January 4, 2025 06:07
Show Gist options
  • Save YuanLiou/e4944a2ed72e5edc05715ebaff53200d to your computer and use it in GitHub Desktop.
Save YuanLiou/e4944a2ed72e5edc05715ebaff53200d to your computer and use it in GitHub Desktop.
Ray's tmux Config 0.2
# 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'
@YuanLiou
Copy link
Author

YuanLiou commented Jan 4, 2025

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