aboutsummaryrefslogtreecommitdiff
path: root/scripts/zfs-replicate
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-19 13:14:52 -0500
committerCraig Jennings <c@cjennings.net>2026-05-19 13:14:52 -0500
commitd78c6b906afa4c29f56f6d9eb050961b0df5b703 (patch)
treeb0ba747eee936105a44d33fffa4b40c0f9ec8225 /scripts/zfs-replicate
parent0f9e0d5fc26604a395c04b45746e89090f5558e5 (diff)
downloadarchsetup-d78c6b906afa4c29f56f6d9eb050961b0df5b703.tar.gz
archsetup-d78c6b906afa4c29f56f6d9eb050961b0df5b703.zip
feat(tmux-util): add pick subcommand (fzf session switcher)
tmux-util pick lists every session ("attached"/"detached" plus name), pipes it through fzf, and attaches or switch-clients to the chosen one (matching the go subcommand's inside-vs-outside-tmux discipline). If the user cancels fzf (Ctrl-C, Esc, empty selection), the pipeline returns empty and pick exits 0 without touching tmux state. The new fake-fzf testing fake is driven by env vars: - FAKE_FZF_CHOICE_LINE=<N>: return the Nth line of stdin as the selection - FAKE_FZF_CHOICE=<string>: return the literal string (ignores stdin) - (neither): exit 130 to simulate cancel 4 new tests cover Normal cases (pick second line, inside/outside tmux behavior) and Boundary cases (no sessions, user cancellation). Total suite: 43 tests, all green.
Diffstat (limited to 'scripts/zfs-replicate')
0 files changed, 0 insertions, 0 deletions