mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-22 02:22:53 +00:00
14 lines
189 B
Bash
Executable file
14 lines
189 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Prints out your local IP
|
|
|
|
PREFIX='ﯱ '
|
|
|
|
get_local_ip()
|
|
{
|
|
IP=$(ip addr | grep -e "inet " | awk 'NR==2' | sed 's/^.*inet.//g; s/\/.*//g')
|
|
|
|
echo "$PREFIX$IP"
|
|
}
|
|
|
|
get_local_ip
|