Hacker News new | ask | show | jobs
by mahaekoh 117 days ago
Mfw typing the command stores the password in plaintext in my shell history
1 comments

Prefix your entire command with a space, usually prevents saving it to the history file.

Usually I do ^ while setting it as a variable, then I can still save the regular command to the history without the secret.