Skip to main content

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

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

(Not more to it than the summary.)