Skip to content

Instantly share code, notes, and snippets.

@Set27
Created January 15, 2024 17:54
Show Gist options
  • Save Set27/de4164d91ad095bfb37630f9a19e408c to your computer and use it in GitHub Desktop.
Save Set27/de4164d91ad095bfb37630f9a19e408c to your computer and use it in GitHub Desktop.
.tmux.conf
#set -g default-terminal "screen-256color"
set -g default-terminal "alacritty"
#set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
#set-option -a terminal-overrides ",alacritty:RGB"
# Основной префикс
set -g prefix C-q
# Сортировка по имени
bind s choose-tree -sZ -O name
# Изменение индексов
set -g base-index 1
setw -g pane-base-index 1
# Переназначение клавиш
unbind %
bind | split-window -h
unbind '"'
bind - split-window -v
unbind r
bind r source-file ~/.tmux.conf
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
bind -r m resize-pane -Z
set -g mouse on
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection
unbind -T copy-mode-vi MouseDragEnd1Pane
# Плагины
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'jimeh/tmux-themepack'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-sessionist'
set -g @themepack 'powerline/default/red'
set -g @resurrect-capture-pane-contents 'on'
set -g @continuum-restore 'on'
# Старт менеджера плагинов
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment