config(fish): add fish completions for cli tools

This commit is contained in:
Prad Nukala committed 2026-07-16 16:58:06 -04:00
1 parent b1fb6ee6fb
commit 7db95c2076
48 files changed
+2241

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
function ai --description 'Choose and launch an AI CLI via gum'
set -l choice (gum choose --header 'AI CLI' claude opencode codex hermes fractal)
test -n "$choice"; or return # cancelled (Esc / Ctrl-C) → bail out
switch $choice
case claude
claude --dangerously-skip-permissions
case '*'
# labels match the binary names, so just run it
# add a dedicated `case` here if another tool needs flags
$choice
end
end