add way to comment/uncomment a command

Fixes #2375
This commit is contained in:
Kurtis Rader
2016-04-16 20:03:14 -07:00
parent bd4622a0d0
commit 2f8d0e9aba
3 changed files with 29 additions and 1 deletions

View File

@@ -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