Last Updated: February 25, 2016
·
388
· twolfson

Print out !something without running it

!something will run the last command which started with something
echo 1 ls !ec # Runs "echo 1"

!something:p will print out the last command without running it
echo 1 ls !ec:p # Echoes "echo 1"

via One Thing Well