Ethan Black :foundation::starting_dvd: :mightyt2: on Nostr: #Bash command-line tip: Alt+'.' enters the last argument of your previous command. ...
#Bash command-line tip: Alt+'.' enters the last argument of your previous command.
Very useful. Example: you just ran file super\ long\ filename to view file information, and then seeing it's a text file, now want to view it so you run less super\ long\ filename. For the second command, you can just type "less ", then press Alt+'.' to insert the last arg of the previous command: "super\ long\ filename".
Also works in #ElvishShell !
#GNUBash #BashShell
Published at
2026-11-29 20:05:45 UTCEvent JSON
{
"id": "5143e4e9ad614f463cf5754aa5b0cf97f02adbe62f0720d2c6bb9da526702535",
"pubkey": "94d764a72c1db4056ca5de0e249795a1698cba92f38ed6e6c3f8aa94e4e894bb",
"created_at": 1795982745,
"kind": 1,
"tags": [
[
"t",
"bash"
],
[
"t",
"elvishshell"
],
[
"t",
"gnubash"
],
[
"t",
"bashshell"
],
[
"proxy",
"https://social.golemwire.com/golemwire/p/1795982745.719148",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "#Bash command-line tip: Alt+'.' enters the last argument of your previous command.\n\nVery useful. Example: you just ran file super\\ long\\ filename to view file information, and then seeing it's a text file, now want to view it so you run less super\\ long\\ filename. For the second command, you can just type \"less \", then press Alt+'.' to insert the last arg of the previous command: \"super\\ long\\ filename\".\n\nAlso works in #ElvishShell !\n\n#GNUBash #BashShell\n",
"sig": "4978367cb0f5d1ed423c51301e623ecc1273745db860cdbdf8c6e30aae0788687339f6415e72045cbc047afe5401bf75858761d765a9e49b5e76d86f4d134c86"
}