Created
March 12, 2025 00:02
-
-
Save kolach/aa5c709157858bb37718868fa25b111f to your computer and use it in GitHub Desktop.
tmux.conf mac os x
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
# Set true color | |
set-option -sa terminal-overrides ",xterm*:Tc" | |
set -g mouse on | |
# Set prefix | |
unbind C-b | |
set -g prefix C-a | |
bind C-a send-prefix | |
# 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 | |
# Shortcut to split panes | |
bind \\ split-window -h -c "#{pane_current_path}" | |
bind - split-window -v -c "#{pane_current_path}" | |
# New window with name prompt, opens window in current pane directory | |
bind c command-prompt -p "window name:" "new-window -c '#{pane_current_path}'; rename-window '%%'" | |
bind % command-prompt -p "window name:" "rename-window '%%'" | |
# moving between panes | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Pane resizing | |
bind -r H resize-pane -L 5 | |
bind -r J resize-pane -D 5 | |
bind -r K resize-pane -U 5 | |
bind -r L resize-pane -R 5 | |
# Use fish as a default shell | |
set -g default-shell /opt/homebrew/bin/fish | |
# List of plugins | |
# set -g @catppuccin_flavour 'latte' | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'christoomey/vim-tmux-navigator' | |
# set -g @plugin 'catppuccin/tmux' | |
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 '[email protected]:user/plugin' | |
# set -g @plugin '[email protected]:user/plugin' | |
# set vi mode | |
set-window-option -g mode-keys vi | |
bind-key -T copy-mode-vi v send-keys -X begin-selection | |
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle | |
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel | |
# 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