Files
dotfiles/dot_config/fish/functions/_gho_bind.fish
T
Prad Nukala 2049f580f0 revert(shell): move iris integration to the iris branch
Reverts 43dfe48, 0692ae3, e0cdcd6 and the cable-description half of
098da70 (the star-prompt stats stay). master returns to the pre-iris
shell setup: atuin in fish/zsh/bash, the down -> pj binding with
PJ_QUIET, and the fish/zsh key bindings as they were. The iris work
lives on the `iris` branch.
2026-10-05 10:41:51 -04:00

14 lines
504 B
Fish

function _gho_bind --description 'ctrl-o: gho (tv --inline), then redraw the prompt in the right place'
set -l before $PWD
gho
if test "$PWD" = "$before"
# Cancelled (or the nvim action ran): tv --inline left the cursor on
# the line below the prompt; step back so repaint redraws in place.
printf '\033[A' >/dev/tty
else
# cd + clear + onefetch: put the prompt below onefetch's output.
printf '\n' >/dev/tty
end
commandline -f repaint
end