Last active
January 7, 2026 03:45
-
-
Save danstn/003f3bee3585d2d8f5dfc13547f9a019 to your computer and use it in GitHub Desktop.
rc
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
| alias gst="git status" | |
| alias gd="git diff" | |
| alias gdca="git diff --cached" | |
| alias glg="git log --oneline" | |
| alias gco="git checkout" | |
| alias gc="git commit -m" |
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 mouse=a | |
| set number | |
| set autoindent |
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
| # remap prefix from 'C-b' to 'C-a' | |
| unbind C-b | |
| set-option -g prefix C-a | |
| bind-key C-a send-prefix | |
| # quick config reload | |
| bind r source-file ~/.tmux.conf | |
| # Enable mouse control (clickable windows, panes, resizable panes) | |
| set -g mouse on | |
| # act like vim | |
| setw -g mode-keys vi | |
| bind h select-pane -L | |
| bind j select-pane -D | |
| bind k select-pane -U | |
| bind l select-pane -R | |
| # Start window numbers at 1 to match keyboard order with tmux window order | |
| set -g base-index 1 | |
| set-window-option -g pane-base-index 1 | |
| # Automatically renumber windows | |
| set -g renumber-windows on | |
| # reload config file | |
| bind r source-file ~/.tmux.conf | |
| # mouse resizing | |
| bind -n WheelUpPane \ | |
| if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" \ | |
| "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment