cool bash shell trick 

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

$ 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.


cool bash shell trick 

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

Sign in to participate in the conversation

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