{ "@context":"https://www.w3.org/ns/activitystreams", "type":"Collection", "id":"https://epiktistes.com/objects/ULprWmix7_U/thread", "items":[ { "@context":[ "https://www.w3.org/ns/activitystreams", {"Hashtag":"as:Hashtag"} ], "published":"2023-12-01T20:34:42.501Z", "attributedTo":"https://epiktistes.com/actors/toddsundsted", "to":["https://www.w3.org/ns/activitystreams#Public"], "cc":["https://epiktistes.com/actors/toddsundsted/followers"], "content":"

nearly just shot my foot off with git. i popped a stash full of work onto a branch and then accidentally reset hard against my main branch by picking the wrong command in my shell history. poof! thankfully, with enough effort you can do anything in git—including checking out the commit representing that deleted stash...

but, some things you should somehow never allow in your shell history:
  * rm -rf <anything>
  * git reset --hard <anything>
  * probably others...


#git

", "mediaType":"text/html", "attachment":[], "tag":[ {"type":"Hashtag","name":"#git","href":"https://epiktistes.com/tags/git"} ], "type":"Note", "id":"https://epiktistes.com/objects/ULprWmix7_U" } , { "@context":[ "https://www.w3.org/ns/activitystreams", {"Hashtag":"as:Hashtag"} ], "published":"2023-12-01T23:46:40.000Z", "attributedTo":"https://fosstodon.org/users/nshephard", "inReplyTo":"https://epiktistes.com/objects/ULprWmix7_U", "replies":"https://fosstodon.org/users/nshephard/statuses/111507826329891350/replies", "to":["https://fosstodon.org/users/nshephard/followers"], "cc":["https://epiktistes.com/actors/toddsundsted"], "content":"

@toddsundsted A space at the start of commands you don't want in your shell history can be handy, it prevents them from being saved/included in your history.

(works with Bash and ZSH at least I think).

", "attachment":[], "tag":[ {"type":"Mention","name":"@toddsundsted@epiktistes.com","href":"https://epiktistes.com/actors/toddsundsted"} ], "url":["https://fosstodon.org/@nshephard/111507826329891350"], "type":"Note", "id":"https://fosstodon.org/users/nshephard/statuses/111507826329891350" } , { "@context":[ "https://www.w3.org/ns/activitystreams", {"Hashtag":"as:Hashtag"} ], "published":"2023-12-02T11:54:34.347Z", "attributedTo":"https://epiktistes.com/actors/toddsundsted", "inReplyTo":"https://fosstodon.org/users/nshephard/statuses/111507826329891350", "to":["https://www.w3.org/ns/activitystreams#Public","https://fosstodon.org/users/nshephard"], "cc":["https://epiktistes.com/actors/toddsundsted/followers"], "content":"

@nshephard thanks! i had no idea...!

", "mediaType":"text/html", "attachment":[], "tag":[ {"type":"Mention","name":"@nshephard@fosstodon.org","href":"https://fosstodon.org/users/nshephard"} ], "type":"Note", "id":"https://epiktistes.com/objects/QhWupfgpqrI" } , { "@context":[ "https://www.w3.org/ns/activitystreams", {"Hashtag":"as:Hashtag"} ], "published":"2023-12-02T22:53:06.000Z", "attributedTo":"https://fosstodon.org/users/nshephard", "inReplyTo":"https://epiktistes.com/objects/QhWupfgpqrI", "replies":"https://fosstodon.org/users/nshephard/statuses/111513277992138214/replies", "to":["https://fosstodon.org/users/nshephard/followers"], "cc":["https://epiktistes.com/actors/toddsundsted"], "content":"

@toddsundsted Bash supports/uses ReadLine as do many other libraries, really useful for command line navigation/editing which are also useful...

https://www.gnu.org/software/bash/manual/html_node/Readline-Interaction.html

", "attachment":[], "tag":[ {"type":"Mention","name":"@toddsundsted@epiktistes.com","href":"https://epiktistes.com/actors/toddsundsted"} ], "url":["https://fosstodon.org/@nshephard/111513277992138214"], "type":"Note", "id":"https://fosstodon.org/users/nshephard/statuses/111513277992138214" } ] }