Monospace Mentor on Nostr: The shell command list you get with `history` is numbered. You can repeat a specific ...
The shell command list you get with `history` is numbered. You can repeat a specific command with `!<number>`. A bit convoluted.
What I do more often is repeating the previous command with `!!`. For example, when I forgot to use `sudo`, I simply go `sudo !!`.
Published at
2024-08-14 19:27:01 UTCEvent JSON
{
"id": "d28536c4251b8c83d84e689338617bbfb5f269ed17b12e1ccf018d4b2361e599",
"pubkey": "0fa1bc4d4ca78024c59d3143631384b374e9c3f2b55858858a8d1a11be2e576d",
"created_at": 1723663621,
"kind": 1,
"tags": [
[
"proxy",
"https://floss.social/@monospace/112962019073062543",
"web"
],
[
"proxy",
"https://floss.social/users/monospace/statuses/112962019073062543",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://floss.social/users/monospace/statuses/112962019073062543",
"pink.momostr"
],
[
"-"
]
],
"content": "The shell command list you get with `history` is numbered. You can repeat a specific command with `!\u003cnumber\u003e`. A bit convoluted.\n\nWhat I do more often is repeating the previous command with `!!`. For example, when I forgot to use `sudo`, I simply go `sudo !!`.",
"sig": "2f7db0b9b6b1d07d1878fbeebca3552905cbb2b23c6bfd6096dd82854d335962e01fd1063f625f3de0f289289dbcda43dca461c437bdaed84bf9bed8274d77a5"
}