15 lines
189 B
Plaintext
15 lines
189 B
Plaintext
|
#!/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
|