Created
December 14, 2016 09:55
-
-
Save eggman64/563870fee0b6545263094bdc5a075bcf to your computer and use it in GitHub Desktop.
bash previous command argument shortcuts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!^ first argument | |
!$ last argument | |
!* all arguments | |
!:2 second argument | |
!:2-3 second to third arguments | |
!:2-$ second to last arguments | |
!:2* second to last arguments | |
!:2- second to next to last arguments | |
!:0 command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment