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

+11
View File
@@ -0,0 +1,11 @@
function clear --wraps clear --description 'clear screen + kitty scrollback, prompt pinned to the bottom'
if not status is-interactive
command clear $argv
return
end
# kitty doesn't clear scrollback with plain `clear`; 3J drops it.
printf '\033[2J\033[3J\033[1;1H'
# Re-pin only when the bottom prompt is enabled (FISH_BOTTOM_PROMPT=0
# keeps the default top prompt).
test "$FISH_BOTTOM_PROMPT" = 1; and tput cup $LINES 0
end