Skip to content

Instantly share code, notes, and snippets.

@sirgallifrey
Created August 31, 2025 09:18
Show Gist options
  • Select an option

  • Save sirgallifrey/5de9b80ae213a0b52741ea268fe8bb1f to your computer and use it in GitHub Desktop.

Select an option

Save sirgallifrey/5de9b80ae213a0b52741ea268fe8bb1f to your computer and use it in GitHub Desktop.
.tmux.conf
setw -g mouse on
set -g default-terminal "tmux-256color"
set-option -g prefix C-a
# bind-key -n "C-q" display-popup -E -w 40% "sesh connect \"$(
# sesh list -i | gum filter --limit 1 --placeholder 'Pick a sesh' --height 50 --prompt='⚑ ' --no-strip-ansi
# )\""
bind-key -n "C-q" run-shell "sesh connect \"$(
sesh list --icons -T -t -c | 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 {}'
)\""
bind-key -n C-S-Left previous-window
bind-key -n C-S-Right next-window
# conflics with something else on nvim
# and C-s for choose session is enough for me
# bind-key -n C-w choose-tree
bind-key -n C-s choose-session
bind-key -n C-S-w choose-window
bind-key x kill-session # skip kill pane prompt
set -g detach-on-destroy off
bind -N "last-session (via sesh) " L run-shell "sesh last"
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
set-option -g status-position top
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'omerxx/tmux-sessionx'
set -g @sessionx-bind 'T'
set -g @plugin 'rose-pine/tmux'
set -g @rose_pine_variant 'main'
run '~/.tmux/plugins/tpm/tpm'
set -g status-bg default
set -g status-style bg=default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment