this post was submitted on 18 Jan 2024
135 points (94.1% liked)

Programmer Humor

19594 readers
1015 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] allywilson@sopuli.xyz 15 points 10 months ago (1 children)

I just start every command with a space, don't see the issue.

[–] mumblerfish@lemmy.world 13 points 10 months ago* (last edited 10 months ago) (2 children)

Was working on a server where I did not want to put some dumb command into the history, so I add a space like you do. Press up. The command is there. The fucking insult I felt.

[–] PoolloverNathan@programming.dev 2 points 10 months ago* (last edited 10 months ago)

It's disabled by default, but you can enable it in .bashrc and then delete that edit session using a spaced command.

Edit: brain fart

[–] superbirra@lemmy.world 1 points 10 months ago

it also depends on the shell, in zsh it persists on local history but does not get written to history file