3 ms·
* HISTCONTROL=ignoreboth * prefix with space the commands you don't want to keep * edit your existing .bash_history by prefixing all commands with space (then
by alecco 4y ago
* HISTCONTROL=ignoreboth
* prefix with space the commands you don't want to keep
* edit your existing .bash_history by prefixing all commands with space (then reload with history -r)
* after session exit or on next login, edit the new commands at the end (vi ~/.bash_history && history -r)
* use comments on the commands to make it easy to search (use keywords)
* group command lines by category (e.g. package manager, git, ssh, backup, find, dev)