Created
January 2, 2025 17:17
-
-
Save protortyp/4c3cdcf8ad4515afd575b57532b8f0f6 to your computer and use it in GitHub Desktop.
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 scroll history to 100,000 lines | |
set-option -g history-limit 100000 | |
# modern colors | |
set -g default-terminal "tmux-256color" | |
set -ga terminal-overrides ",alacritty:Tc" | |
# vim copy mode | |
bind -T copy-mode-vi v send -X begin-selection | |
bind -T copy-mode-vi y send-keys -X copy-pipe 'pbcopy' | |
bind -T copy-mode-vi Enter send-keys -X cancel | |
# Fix titlebar | |
set -g set-titles on | |
set -g set-titles-string "#T" | |
# Avoid ESC delay | |
set -s escape-time 0 | |
# reload | |
bind r source-file ~/.tmux.conf | |
# VIM mode | |
set -g mode-keys vi | |
# move windows | |
bind -n C-S-Left swap-window -t -1 | |
bind -n C-S-Right swap-window -t +1 | |
# split panes using | and - | |
bind | split-window -h | |
bind - split-window -v | |
unbind '"' | |
unbind % | |
set -g status-right '' | |
set -g status-right-length 0 | |
# enable mouse | |
set -g mouse on | |
# default zsh | |
set -g default-command "$SHELL" | |
# better colors | |
# default statusbar colors | |
set-option -g status-style "fg=#00ff00,bg=#000000" | |
# default window title colors | |
set-window-option -g window-status-style "fg=#008000,bg=default" | |
# active window title colors | |
set-window-option -g window-status-current-style "fg=#00ff00,bg=#000000" | |
# pane border | |
set-option -g pane-border-style "fg=#004400" | |
set-option -g pane-active-border-style "fg=#00ff00" | |
# message text | |
set-option -g message-style "fg=#00ff00,bg=#000000" | |
# pane number display | |
set-option -g display-panes-active-colour "#00ff00" | |
set-option -g display-panes-colour "#008000" | |
# clock | |
set-window-option -g clock-mode-colour "#00ff00" | |
# copy mode highlight | |
set-window-option -g mode-style "fg=#00ff00,bg=#002200" | |
# bell | |
set-window-option -g window-status-bell-style "fg=#000000,bg=#ff0000" | |
# Plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
run '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment