Created
October 27, 2024 07:36
-
-
Save oasido/be9450b3d377007611afec5fd7c6ba06 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
# General settings | |
set -g default-terminal "tmux-256color" | |
set -ga terminal-overrides ",*256col*:Tc" | |
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q' | |
set -ga terminal-overrides ",xterm-256color:Tc" | |
set -ga terminal-overrides ",alacritty:RGB" | |
set -s escape-time 50 | |
set -g base-index 1 | |
set -g focus-events on | |
set -g mouse on | |
# Prefix and key bindings | |
unbind C-b | |
set -g prefix C-a | |
bind-key C-a send-prefix | |
bind r source-file ~/.tmux.conf | |
# VIM like pane and window navigation | |
bind -r ^ last-window | |
bind -r k select-pane -U | |
bind -r j select-pane -D | |
bind -r h select-pane -L | |
bind -r l select-pane -R | |
# Open new panes in the current path | |
bind c new-window -c "#{pane_current_path}" | |
bind % split-window -h -c "#{pane_current_path}" | |
bind '"' split-window -v -c "#{pane_current_path}" | |
# Copy mode (vi mode) | |
set-window-option -g mode-keys vi | |
bind -T copy-mode-vi v send-keys -X begin-selection | |
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' | |
# Status bar configuration | |
set -g status-style fg=colour8,bg=colour234 | |
set -g status-left ' #S ' | |
set -g status-left-length 15 | |
set -g status-left-style fg=colour229,bg=colour166 | |
set -g window-status-format "#[fg=colour8] #I #[fg=colour231]#W#[fg=colour166]#F " | |
set -g window-status-current-format "#[fg=colour117,bg=colour31] #I #[fg=colour231]#W#[fg=colour234]#F " | |
set -g window-status-separator "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment