Added hostname module

This commit is contained in:
Manuel Palenzuela 2019-10-25 12:48:08 +01:00
parent 570963e08c
commit fce557554a

12
modules/hostname Normal file
View file

@ -0,0 +1,12 @@
#!/bin/bash
# Prints USER@hostname
PREFIX=' '
get_hostname()
{
echo "$PREFIX$USER@$(hostname)"
}
get_hostname