mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 09:31:16 -03:00
doc: bind ctrl-c clear-commandline
This commit is contained in:
@@ -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``.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user