diff options
Diffstat (limited to 'modules/hostname')
-rwxr-xr-x | modules/hostname | 12 |
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 |