4 ms·
alias oops='history -d $((HISTCMD-2)) && history -d $((HISTCMD-1))'
by maxgee 11y ago
alias oops='history -d $((HISTCMD-2)) && history -d $((HISTCMD-1))'
- dllthomas 11y agoAlas, not helpful here. The logging is done in PROMPT_COMMAND, meaning by the time you can type another command things are already logged and editing your history won't help. Hopefully (though I see no evidence of this, I've also only skimmed the material) things are marshalled somewhere locally and can be inspected/edited before being sent to the server.