mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-21 18:12:53 +00:00
15 lines
175 B
Text
15 lines
175 B
Text
|
#!/bin/bash
|
||
|
|
||
|
# Prints out your OS name
|
||
|
|
||
|
PREFIX=' '
|
||
|
|
||
|
get_os_name()
|
||
|
{
|
||
|
OS=$(cat /etc/os-release | head -n 1 | sed 's/NAME=//g')
|
||
|
|
||
|
echo "$PREFIX$OS"
|
||
|
}
|
||
|
|
||
|
get_os_name
|