cool bash shell trick Show more
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.
@tty Wow! I had no idea. Thanks for this. Seems to work in zsh too.
Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.