Last active
July 27, 2023 22:10
-
-
Save jocho-here/596625106ca500f2325fd316c853e893 to your computer and use it in GitHub Desktop.
.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
#remap c-b to c-a | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
### LOOK & FEEL ### | |
set -g default-terminal "xterm-256color" | |
# default statusbar colors | |
set -g status-style bg=colour235,default,fg=colour179,default | |
# default window title colors | |
set -g window-status-style fg=colour244 | |
# active window title colors | |
set -g window-status-current-style fg=colour166,bright,bg=default,bright | |
# pane border | |
set -g pane-border-style fg=colour235 | |
set -g pane-active-border-style fg=colour240 | |
# pane number display | |
set -g display-panes-active-colour colour33 | |
set-option -g display-panes-colour colour166 | |
# clock | |
set-window-option -g clock-mode-colour colour64 | |
# pane split | |
unbind % | |
bind v split-window -v | |
unbind '"' | |
bind g split-window -h | |
# pane selection | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# escape time | |
set -sg escape-time 0 | |
# resizing | |
bind-key J resize-pane -D 5 | |
bind-key K resize-pane -U 5 | |
bind-key L resize-pane -R 5 | |
bind-key H resize-pane -L 5 | |
# Command history | |
set -g history-file ~/.tmux_history | |
# Scroll buffer size | |
set-option -g history-limit 10000 | |
# Copying in scroll mode | |
unbind-key -T copy-mode-vi v | |
setw -g mode-keys vi | |
bind-key -T copy-mode-vi 'v' send -X begin-selection # Begin selection in copy mode | |
bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle # Begin selection in copy mode. | |
bind-key -T copy-mode-vi 'y' send -X copy-selection # Yank selection in copy mode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment