From 20dc5f4489b2c847eb52bbd52840b00b9a84ce93 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Thu, 13 Aug 2026 21:04:52 -0400 Subject: [PATCH] feat(scripts): add suv-pick script for interactive history selection --- dot_local/bin/executable_suv-pick | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 dot_local/bin/executable_suv-pick diff --git a/dot_local/bin/executable_suv-pick b/dot_local/bin/executable_suv-pick new file mode 100755 index 0000000..75809d7 --- /dev/null +++ b/dot_local/bin/executable_suv-pick @@ -0,0 +1,11 @@ +#!/bin/zsh +# suv-pick: suvadu history picker for a kitty split (ctrl+shift+p). +# suv search draws its TUI on stderr and prints the selected command to +# stdout (Esc prints nothing). Run the selection with rc loaded so aliases +# and functions resolve, then drop to an interactive shell. +sel="$(command suv search)" +if [[ -n "$sel" ]]; then + print -ru2 -- "❯ $sel" + zsh -ic -- "$sel" +fi +exec zsh -i