|
|
|
|
|
by hamosch
1512 days ago
|
|
Learnt a neat trick from an old sysadmin colleague. If you’ve written a command but realize you don’t want to run it right now but want to save it in your history you can just put a `#` in front of it (ctrl-a #) making it a comment and allowing you to save it in your history without running it. When you’re ready to run it you find it and remove the preceding `#` |
|
EDIT: This apparently needs to be configured - setting HISTCONTROL=ignorespace