3 ms·
One could comment the "very long command" with # and it would appear in the history... no hacks.
by matheusalmeida 14y ago
One could comment the "very long command" with # and it would appear in the history... no hacks.
- adavies42 14y agothis is hotkeyed to Meta-# by default (one of the readline features i rediscover every three months or so and promptly forget)
- matheusalmeida 14y agoTested and it works brilliantly... it's definitely faster than C-a # RET... Thanks for the tip.
- adavies42 14y agoit's fully customizable too. e.g. if you work in a LISP REPL and use rlwrap to provide readline functionality, you could put this in your ~/.inputrc: $if lisp set comment-begin ; M-;: insert-comment $endif