aboutsummaryrefslogtreecommitdiffstats
path: root/gotrc-examples
diff options
context:
space:
mode:
Diffstat (limited to 'gotrc-examples')
-rw-r--r--gotrc-examples/hide-username15
1 files changed, 15 insertions, 0 deletions
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
+}
+