Follow

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.

cool bash shell trick 

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

cool bash shell trick 

@tty :blobaww: this is very useful. ty

Sign in to participate in the conversation
Sunbeam City 🌻

Sunbeam City is a anticapitalist, antifascist solarpunk instance that is run collectively.