mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-22 02:22:53 +00:00
commit
86743660c7
1 changed files with 12 additions and 0 deletions
12
modules/hostname
Executable file
12
modules/hostname
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Prints USER@hostname
|
||||||
|
|
||||||
|
PREFIX=' '
|
||||||
|
|
||||||
|
get_hostname()
|
||||||
|
{
|
||||||
|
echo "$PREFIX$USER@$(hostname)"
|
||||||
|
}
|
||||||
|
|
||||||
|
get_hostname
|
Loading…
Reference in a new issue