Mfw typing the command stores the password in plaintext in my shell history
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.
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.