cool bash shell trick 

You can use Alt+. to insert the last used parameter into bash!

e.g.
$ mkdir audio
$ cd |

Where | is your cursor. Now when you hit Alt+., it'll fill in 'audio'!

You can keep pressing Alt+. repeatedly to cycle through older parameters, too.

Follow

cool bash shell trick 

@tty Wow! I had no idea. Thanks for this. Seems to work in zsh too.

· · 0 · 0 · 1
Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.