1
0
Fork 0
dotfiles/dot_config/tmux/tmux.conf
2025-05-11 12:02:18 +02:00

58 lines
1.9 KiB
Bash

set -s exit-empty off
set-option -sa terminal-overrides ',xterm*:Tc'
set -g mouse on
set -ga terminal-overrides ',*256color*:smcup@:rmcup@'
unbind C-b
set -g prefix C-a
bind C-a send-prefix
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set -g renumber-windows on
set -g @plugin "tmux-plugins/tpm"
set -g @plugin "tmux-plugins/tmux-sensible"
set -g @plugin "tmux-plugins/tmux-yank"
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'AngryMorrocoy/tmux-neolazygit'
set -g @plugin 'alexwforsythe/tmux-which-key'
set -g @plugin 'erikw/tmux-powerline'
set -g @plugin "catppuccin/tmux"
set -g @catpuccin_flavour 'mocha'
run "~/.tmux/plugins/tmp/tpm"
set -g status-keys vi
setw -g mode-keys vi
set -g history-limit 10000
bind-key -T copy-mode v send-keys -X begin-selection
bind-key -T copy-mode C-v send-keys -X rectangle-toggle
bind-key -T copy-mode y send-keys -X copy-selection-and-cancel
bind-key Escape copy-mode
bind-key p paste-buffer
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind-key "C-f" run-shell "sesh connect \"$(
sesh list --icons | fzf-tmux -p 80%,70% \
--no-sort --ansi --border-label ' sesh ' --prompt '⚡ ' \
--header ' ^a all ^t tmux ^g configs ^x zoxide ^d tmux kill ^f find' \
--bind 'tab:down,btab:up' \
--bind 'ctrl-a:change-prompt(⚡ )+reload(sesh list --icons)' \
--bind 'ctrl-t:change-prompt(🪟 )+reload(sesh list -t --icons)' \
--bind 'ctrl-g:change-prompt(⚙️ )+reload(sesh list -c --icons)' \
--bind 'ctrl-x:change-prompt(📁 )+reload(sesh list -z --icons)' \
--bind 'ctrl-f:change-prompt(🔎 )+reload(fd -H -d 2 -t d -E .Trash . ~)' \
--bind 'ctrl-d:execute(tmux kill-session -t {2..})+change-prompt(⚡ )+reload(sesh list --icons)' \
--preview-window 'right:55%' \
--preview 'sesh preview {}'
)\""