Replies: 1 comment
-
|
Awesome tip! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there,
At the end of Lesson 5, in the "Better Private Key Management" section, Patrick shows a way to clear the command history from the terminal (to hide the password to the encrypted private key).
I have zsh installed, not bash, and it uses a different command to clear the command history. The problem is that the
history -pcommand in zsh only clears the history during the local session. I did a little experiment and found that:history -pand restart the terminal, they will be saved in the history file (including our password for the private key), despite the fact that they were deleted in the local terminal instance..zsh_historyI hope it will be useful to someone :)
Beta Was this translation helpful? Give feedback.
All reactions