feat: fish: add a wrapper for bass and keybindings
This commit is contained in:
parent
4a70178aca
commit
4156e6877b
2 changed files with 12 additions and 0 deletions
6
home/private_dot_config/private_fish/functions/fash.fish
Normal file
6
home/private_dot_config/private_fish/functions/fash.fish
Normal 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
|
||||
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue