Last active
March 31, 2025 03:05
-
-
Save v3ronez/30df62bc6a49d7c445c2da9afe3fa695 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
| set -g default-terminal "tmux-256color" | |
| set -ag terminal-overrides ",xterm-256color:RGB" | |
| set-option -sa terminal-overrides ",xterm*:Tc" | |
| set -g prefix C-a | |
| unbind C-b | |
| bind-key C-a send-prefix | |
| set -s escape-time 10 | |
| setw -g xterm-keys on | |
| set -g mouse on | |
| setw -g mode-keys vi | |
| unbind -n -Tcopy-mode-vi MouseDragEnd1Pane | |
| set -g base-index 1 | |
| setw -g pane-base-index 1 | |
| setw -g automatic-rename on | |
| set -g renumber-windows on | |
| set-option -g automatic-rename-format '#{b:pane_current_path}' | |
| set -g status-interval 5 | |
| unbind % | |
| bind v split-window -h -c "#{pane_current_path}" -p 40 | |
| unbind '"' | |
| bind h split-window -v -c "#{pane_current_path}" | |
| bind-key -r f run-shell "tmux neww ~/.local/scripts/tmux-sessionizer" | |
| unbind r | |
| bind r source-file ~/.tmux.conf | |
| #option to resize-pane | |
| bind -r -n M-j resize-pane -D 5 | |
| bind -r -n M-k resize-pane -U 5 | |
| bind -r -n M-l resize-pane -R 5 | |
| bind -r -n M-h resize-pane -L 5 | |
| bind -r -n M-m resize-pane -Z 5 | |
| # vim-like pane switching | |
| # bind -r ^ last-window | |
| bind -r j select-pane -D | |
| bind -r k select-pane -U | |
| bind -r h select-pane -L | |
| bind -r l select-pane -R | |
| #option/alt to swith between panes | |
| # bind-key -n M-h "select-pane -L" | |
| # bind-key -n M-j "select-pane -D" | |
| # bind-key -n M-k "select-pane -U" | |
| # bind-key -n M-l "select-pane -R" | |
| bind-key -r f run-shell "tmux neww ~/.local/bin/tmux-sessionizer" | |
| set -g mouse on | |
| set-window-option -g mode-keys vi | |
| bind-key -T copy-mode-vi 'v' send -X begin-selection | |
| bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "pbcopy" | |
| bind P paste-buffer | |
| bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy" | |
| set -g status-position top | |
| # List of plugins | |
| set -g @plugin 'tmux-plugins/tpm' | |
| set -g @plugin 'tmux-plugins/tmux-battery' | |
| set -g @plugin 'tmux-plugins/tmux-cpu' | |
| set -g @plugin 'tmux-plugins/tmux-sensible' | |
| set -g @plugin 'christoomey/vim-tmux-navigator' | |
| set -g @plugin 'tmux-plugins/tmux-resurrect' | |
| set -g @plugin 'tmux-plugins/tmux-continuum' | |
| set -g @resurrect-capture-pane-contents 'on' | |
| #Theme | |
| set -g @plugin 'catppuccin/tmux#v2.1.3' # See https://github.com/catppuccin/tmux/tags for additional tags | |
| set -g @catppuccin_flavor 'mocha' # latte, frappe, macchiato or mocha | |
| set -g status-right-length 100 | |
| set -g status-left-length 100 | |
| set -g status-left "" | |
| set -g status-right "#{E:@catppuccin_status_application}" | |
| set -agF status-right "#{E:@catppuccin_status_cpu}" | |
| set -ag status-right "#{E:@catppuccin_status_session}" | |
| set -ag status-right "#{E:@catppuccin_status_uptime}" | |
| set -agF status-right "#{E:@catppuccin_status_battery}" | |
| #end theme | |
| #dont auto restore | |
| #set -g @continuum-restore 'on' | |
| # 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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment