Last active
November 1, 2024 19:30
-
-
Save cdpb/4855f0324955f6dccfbe982efda4fba8 to your computer and use it in GitHub Desktop.
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
# Settings | |
## start counting tmux sessions from 1 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
## increase history | |
set -g history-limit 50000 | |
## Refresh 'status-left' and 'status-right' more often | |
set -g status-interval 5 | |
## Upgrade $TERM | |
set -g default-terminal "screen-256color" | |
## Focus events enabled for terminals that support them | |
set -g focus-events on | |
# Keybindings | |
## prefix | |
unbind C-b | |
set-option -g prefix C-q | |
bind-key C-q send-prefix | |
## windows | |
bind C-p previous-window | |
bind C-n next-window | |
bind s split-window -h | |
bind a split-window -v | |
## panes | |
unbind '"' | |
unbind % | |
bind j join-pane -h | |
bind b break-pane | |
## copy paste | |
bind ! copy-mode | |
bind v paste-buffer | |
setw -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-and-cancel | |
# Mouse | |
set -g mouse on | |
# Plugins | |
## some mouse features | |
set -g @plugin 'nhdaly/tmux-better-mouse-mode' | |
## prefix + F | |
set -g @plugin 'sainnhe/tmux-fzf' | |
## extract all prefix + tab | |
set -g @plugin 'laktak/extrakto' | |
## fastcopy prefix + f | |
set -g @plugin 'abhinav/tmux-fastcopy' | |
set-option -g set-clipboard on | |
set-option -g @fastcopy-action 'tmux load-buffer -w -' | |
set-option -g @fastcopy-regex-servername "(?i)srv.*" | |
## autoreload | |
set-option -g @plugin 'b0o/tmux-autoreload' # dnf install entr | |
## tmux-ssh prefix + e | |
set -g @plugin 'cdpb/tmux-ssh' | |
# Themes | |
set -g @plugin "janoamaral/tokyo-night-tmux" | |
set -g @tokyo-night-tmux_window_id_style digital | |
set -g @tokyo-night-tmux_pane_id_style hsquare | |
set -g @tokyo-night-tmux_zoom_id_style dsquare | |
set -g @tokyo-night-tmux_show_datetime 0 | |
set -g @tokyo-night-tmux_date_format MYD | |
set -g @tokyo-night-tmux_time_format 12H | |
set -g @tokyo-night-tmux_show_path 1 | |
set -g @tokyo-night-tmux_path_format relative # 'relative' or 'full' | |
# Last Line TPM Plugin | |
run '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment