feat: fish: add a wrapper for bass and keybindings

This commit is contained in:
grassblock 2025-03-03 23:06:27 +08:00
parent 4a70178aca
commit 4156e6877b
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,6 @@
function fash --description "run last bash command as fish equivalent ones using bass"
# minimal wrapper
set last_command $history[1]
bass $last_command
end

View file

@ -0,0 +1,6 @@
function fish_user_key_bindings
bind --preset ctrl-c cancel-commandline # return the old behaviour of ctrl+c
#bind escape,escape fash
#uncomment it to enable reexecute the last command as bass
# TODO: make a new prompt after it.
end