doc: bind ctrl-c clear-commandline

This commit is contained in:
lengyijun
2025-03-12 09:12:46 +08:00
committed by Fabian Boehm
parent 411a396fa9
commit 517b02899a

View File

@@ -549,8 +549,8 @@ Custom bindings
In addition to the standard bindings listed here, you can also define your own with :doc:`bind <cmds/bind>`::
# Just clear the commandline on control-c
bind ctrl-c 'commandline -r ""'
# Prints ``^C`` and a new prompt
bind ctrl-c cancel-commandline
Put ``bind`` statements into :ref:`config.fish <configuration>` or a function called ``fish_user_key_bindings``.