Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
brianshaler
11y ago
0 comments
Share
Depending on your system and configuration, couldn't you prepend a space to the command to prevent it from being saved into your history?
edit: Looks like vacri mentioned this in a peer comment an hour ago. Whoops!
0 comments
default
newest
oldest
nmjohn
11y ago
That works if you are using bash, but if you are, for example, using zsh, you would first have to run "setopt histignorespace" which would enable hiding lines prepended with a space in the history (it's off by default).
j
/
k
navigate · click thread line to collapse