From c5c3e4cf705699c68cf26aee9964350dd87cefe8 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 2 Dec 2013 09:47:21 +0100 Subject: add module that hides the username MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- gotrc-examples/hide-username | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 gotrc-examples/hide-username (limited to 'gotrc-examples') diff --git a/gotrc-examples/hide-username b/gotrc-examples/hide-username new file mode 100644 index 0000000..cf959c9 --- /dev/null +++ b/gotrc-examples/hide-username @@ -0,0 +1,15 @@ +# -*- shell-script -*- + +# This module requires that got runs under GNU Bash. + +# This module hides the username when it is types, +# this can be useful so that nopony can se your +# passphrase if you type it in instead of your +# username by mistake when you log in. + + +_read () +{ + read -s user +} + -- cgit v1.2.3-70-g09d2