Last active
July 9, 2024 08:40
-
-
Save realphongha/abbc89ad908d94afa054049b64eb7917 to your computer and use it in GitHub Desktop.
My .tmux.conf
This file contains 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
### Basic configs | |
# source file | |
unbind r | |
bind r source-file ~/.tmux.conf | |
# new prefix | |
# unbind C-b | |
# set -g prefix C-a | |
# act like vim | |
setw -g mode-keys vi | |
# navigate between panes | |
bind-key h select-pane -L | |
bind-key j select-pane -D | |
bind-key k select-pane -U | |
bind-key l select-pane -R | |
# resize the pane | |
bind-key -r J resize-pane -D 3 | |
bind-key -r K resize-pane -U 3 | |
bind-key -r H resize-pane -L 3 | |
bind-key -r L resize-pane -R 3 | |
# auto save when exit tmux | |
bind-key d run-shell "#{@resurrect-save-script-path} quiet" \; detach-client | |
# history | |
set -g history-limit 50000 | |
# screen 256color | |
set -g default-terminal "tmux-256color" | |
# escape time | |
set-option -sg escape-time 0 | |
# enable focus-events for vim | |
set-option -g focus-events on | |
### Plugins | |
## tpm | |
# remember to install tpm first by: | |
# git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm | |
set -g @plugin 'tmux-plugins/tpm' | |
## tmux-sensible | |
#set -g @plugin 'tmux-plugins/tmux-sensible' | |
## tmux-resurrect | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
## colorschemes | |
## catppuccin | |
# set -g @plugin 'catppuccin/tmux' | |
# set -g @catppuccin_flavour 'macchiato' # or frappe, macchiato, mocha | |
## rose-pine | |
set -g @plugin 'rose-pine/tmux' | |
set -g @rose_pine_variant 'main' # Options are 'main', 'moon' or 'dawn' | |
## gruvbox | |
# set -g @plugin 'egel/tmux-gruvbox' | |
# set -g @tmux-gruvbox 'dark' # or 'light' | |
## solarized | |
# set -g @plugin 'seebi/tmux-colors-solarized' | |
# 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