Lazy Hacker Babble

Just some random babblings from a lazy hacker…

Hide password in Emacs shell

Posted by hsin on September 28th, 2008

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.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>