Skip to content

Instantly share code, notes, and snippets.

@mminski
Last active May 14, 2016 10:33
Show Gist options
  • Save mminski/660b0352ac67d062914a5608c1133004 to your computer and use it in GitHub Desktop.
Save mminski/660b0352ac67d062914a5608c1133004 to your computer and use it in GitHub Desktop.
generate password without leaving traces in history
md5 -q -s "mypassword" | pbcopy | INTE="$(wc .zsh_history | awk '{print $1-1}')" | head -n +$INTE .zsh_history | >dump && mv dump .zsh_history
//even better is when you use gpg and read the password out of an encrypted file
// and dont use md5 use sha2 ±__±
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment