aboutsummaryrefslogtreecommitdiffstats
path: root/modules/hostname
diff options
context:
space:
mode:
Diffstat (limited to 'modules/hostname')
-rwxr-xr-xmodules/hostname12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/hostname b/modules/hostname
new file mode 100755
index 0000000..258fbd8
--- /dev/null
+++ b/modules/hostname
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# Prints USER@hostname
+
+PREFIX='💻 '
+
+get_hostname()
+{
+ echo "$PREFIX$USER@$(hostname)"
+}
+
+get_hostname