jb55 on Nostr: after like 20 years of using bash i had no idea you could do this: $ bind -q ...
after like 20 years of using bash i had no idea you could do this:
$ bind -q glob-expand-word
will show you the bindings for expanding globs in your terminal
when your cursor is at the end of a glob
$ *.txt<---
press <Ctrl-x-*>, or <Esc-*> in vi mode
The prompt will expand to
$ alice.txt bob.txt
just used this because I wanted to expand the blob for a command but not use all the arguments. awesome.
Published at
2025-07-29 22:11:17 UTCEvent JSON
{
"id": "2fabd04e529c6396239acb925b5e79333e5aa3d15b77792da557422215d7d777",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1753827077,
"kind": 1,
"tags": [
[
"client",
"Damus Notedeck"
]
],
"content": "after like 20 years of using bash i had no idea you could do this:\n\n$ bind -q glob-expand-word\n\nwill show you the bindings for expanding globs in your terminal\n\nwhen your cursor is at the end of a glob\n\n$ *.txt\u003c---\n\npress \u003cCtrl-x-*\u003e, or \u003cEsc-*\u003e in vi mode\n\nThe prompt will expand to\n\n$ alice.txt bob.txt\n\njust used this because I wanted to expand the blob for a command but not use all the arguments. awesome.",
"sig": "377aa8c65f66a794954dbb6dab7535548299b888badf1c05a2c22051c3fcf69ca3da48f1e68cac922f4137c94a72588661f61028b6292d23a9a21f7295e39cb3"
}