From c2b70ec910628470fc44db9cacb25e047ffa3f6c Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Wed, 28 Jan 2026 21:06:41 +0100 Subject: [PATCH] add sesh for session management --- modules/tmux.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/tmux.nix b/modules/tmux.nix index 5f99161..acde025 100644 --- a/modules/tmux.nix +++ b/modules/tmux.nix @@ -4,6 +4,10 @@ let continuumSaveScript = "${pkgs.tmuxPlugins.continuum}/share/tmux-plugins/continuum/scripts/continuum_save.sh"; in { + home.packages = [ pkgs.sesh ]; + + programs.zsh.shellAliases.ts = "sesh connect $(sesh list --icons | fzf --reverse --border --ansi)"; + programs.tmux = { enable = true; shortcut = "a"; @@ -95,7 +99,10 @@ in # Reload config file bind r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded!" - + + # Fast session switcher with sesh + fzf + bind s display-popup -B -E "sesh connect $(sesh list --icons | fzf --reverse --border --ansi)" + # Better copy mode with OSC-52 clipboard bind-key -T copy-mode-vi v send-keys -X begin-selection bind-key -T copy-mode-vi y send-keys -X copy-pipe