mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-04 11:47:37 +00:00
config(fish): add fish completions for cli tools
This commit is contained in:
1 parent
b1fb6ee6fb
commit
7db95c2076
48 files changed
+2241
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user