Skip to main content

Use $_ to get the last argument to the previous bash command

  • Posted

This allows you to write commands like mkdir myfolder && cd $_ or git init myrepo && cd $_.