diff --git a/modules/hostname b/modules/hostname new file mode 100755 index 0000000..41ec4fa --- /dev/null +++ b/modules/hostname @@ -0,0 +1,12 @@ +#!/bin/bash + +# Prints USER@hostname + +PREFIX=' ' + +get_hostname() +{ + echo "$PREFIX$USER@$(hostname)" +} + +get_hostname