aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/fish_default_key_bindings.fish
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2016-04-16 20:03:14 -0700
committerGravatar Kurtis Rader <krader@skepticism.us>2016-04-19 18:38:58 -0700
commit2f8d0e9aba3662fcb1032ffe33bc6faf2e04eb8f (patch)
treedd98834c4104f74f02d745fc2e35034f8579dd65 /share/functions/fish_default_key_bindings.fish
parentbd4622a0d01c7d882c37c46f6730567750dda657 (diff)
add way to comment/uncomment a command
Fixes #2375
Diffstat (limited to 'share/functions/fish_default_key_bindings.fish')
-rw-r--r--share/functions/fish_default_key_bindings.fish5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/functions/fish_default_key_bindings.fish b/share/functions/fish_default_key_bindings.fish
index 0f0d578c..c057754a 100644
--- a/share/functions/fish_default_key_bindings.fish
+++ b/share/functions/fish_default_key_bindings.fish
@@ -144,5 +144,8 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis
bind $argv \eOc forward-word
bind $argv \eOd backward-word
end
-end
+ # Make it easy to turn an unexecuted command into a comment in the shell history. Also,
+ # remove the commenting chars so the command can be further edited then executed.
+ bind \e\# __fish_toggle_comment_commandline
+end