Merge pull request #5 from thytom/hostname

Hostname module
This commit is contained in:
Baitinq 2019-10-25 14:04:48 +01:00 committed by GitHub
commit 86743660c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

12
modules/hostname Executable file
View file

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