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
Written by Todd Wolfson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#