2 ms·
7. in bash, I use the: [Esc], [#] combo, equivalent to: [Alt]-[Shift]-[3] (a.k.a.: "M-#" in the official docs). This is a shortcut which basically prefixes the
by akavel 6y ago
7. in bash, I use the: [Esc], [#] combo, equivalent to: [Alt]-[Shift]-[3] (a.k.a.: "M-#" in the official docs).
This is a shortcut which basically prefixes the current line with '#' comment character and then simulates hitting Enter (pushing the commented-out line into history buffer).
- mkl 6y agoAnd then the inverse operation, uncommenting and running, is "M-3 M-#" (any number will do, but 3 is on the same key as #).