From 29c4ca1a8122f5bd120febb010ace1b3bf0d7ab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sun, 9 Nov 2025 23:05:20 +0800 Subject: [PATCH] packages/tmux-sessionizer: remove tmux-register-session We already use the builtin leader-l binding, no need to keep this. --- .../by-name/tmux-sessionizer/package.nix | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/nix/packages/by-name/tmux-sessionizer/package.nix b/nix/packages/by-name/tmux-sessionizer/package.nix index 63ebfc67..63c7cbc1 100644 --- a/nix/packages/by-name/tmux-sessionizer/package.nix +++ b/nix/packages/by-name/tmux-sessionizer/package.nix @@ -8,24 +8,6 @@ symlinkJoin, }: let - tmux-register-session = writeShellApplication { - name = "__tmux-register-session"; - runtimeInputs = [ tmux ]; - text = '' - last=/tmp/TMUX_LAST - - # bail if tmux not running - if ! pgrep tmux >/dev/null 2>&1; then - exit 1 - fi - - this="$(tmux display-message -p '#S')" - if [ ! -f "$last" ] || [ "$(cat "$last")" != "$this" ]; then - echo "$this" >"$last" - fi - ''; - }; - tmux-maybe-create = writeShellApplication { name = "__tmux-maybe-create"; runtimeInputs = [ @@ -94,7 +76,6 @@ let esac # effects - ${lib.getExe tmux-register-session} || : ${lib.getExe tmux-maybe-create} "$session_name" "$selected" ${lib.getExe tmux-attach-or-switch} "$session_name" ''; @@ -103,7 +84,6 @@ in symlinkJoin { name = "tmux-sessionizer"; paths = [ - tmux-register-session tmux-maybe-create tmux-attach-or-switch tmux-sessionizer