Hide password in Emacs shell

I often use the EMACS shell to look at log files, but I don’t want my password to be shown when I’m typing it in the shell. To hide it, add the following to your .emacs file:

(add-hook 'comint-output-filter-functions 'comint-watch-for-password-prompt)

Or manually type ’M-x send-invisible’ before typing the password.

LazyHacker avatar
About LazyHacker
Just a boring guy.