Short but sweet: for i in {1..10}; do history -d $(($HISTCMD-11)); done
↧
Answer by alchemy for How to delete history of last 10 commands in shell?
↧
Short but sweet: for i in {1..10}; do history -d $(($HISTCMD-11)); done