history-replay run multi commands in your history quickly Usage sudo npm install history-replay -g# or just a try npx history-replay On Bash # add to your ~/.bashrc alias history-replay='history -w && history-replay' Note Only test on zsh and bash.