From 517b02899a54d67a0af6777903ab2aa5654d1056 Mon Sep 17 00:00:00 2001 From: lengyijun Date: Wed, 12 Mar 2025 09:12:46 +0800 Subject: [PATCH] doc: `bind ctrl-c clear-commandline` --- doc_src/interactive.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc_src/interactive.rst b/doc_src/interactive.rst index 73f5be652..b971c006f 100644 --- a/doc_src/interactive.rst +++ b/doc_src/interactive.rst @@ -549,8 +549,8 @@ Custom bindings In addition to the standard bindings listed here, you can also define your own with :doc:`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 ` or a function called ``fish_user_key_bindings``.