Last active
November 22, 2024 07:41
-
-
Save AshishKapoor/da56f4173e3cf91f7b761ed8d2e1b48b 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 the prefix to Ctrl+a | |
set -g prefix C-a | |
# Remove the old prefix | |
unbind C-b | |
# Send Ctrl+a to applications by pressing it twice | |
bind C-a send-prefix | |
# List of plugins | |
set -g @plugin 'catppuccin/tmux#v2.1.0' | |
set -g @catppuccin_flavor 'mocha' | |
# Options to make tmux more pleasant | |
set -g mouse on | |
set -g default-terminal "tmux-256color" | |
# Configure the catppuccin plugin | |
set -g @catppuccin_flavor "mocha" | |
set -g @catppuccin_window_status_style "rounded" | |
# Load catppuccin | |
run ~/.config/tmux/plugins/catppuccin/tmux/catppuccin.tmux | |
# For TPM, instead use `run ~/.config/tmux/plugins/tmux/catppuccin.tmux` | |
# Make the status line pretty and add some modules | |
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}" | |
run ~/.config/tmux/plugins/tmux-plugins/tmux-cpu/cpu.tmux | |
run ~/.config/tmux/plugins/tmux-plugins/tmux-battery/battery.tmux | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
set -g @resurrect-dir '$HOME/Developer/github/netix/' | |
set -g @plugin 'tmux-plugins/tmux-continuum' | |
set -g @continuum-restore 'on' | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run '~/.tmux/plugins/tpm/tpm' | |
set-option -g status-position top | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment