2019-10-24 19:09:35 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Prints out your local IP
|
|
|
|
|
|
|
|
PREFIX='ﯱ '
|
|
|
|
|
|
|
|
get_local_ip()
|
|
|
|
{
|
2019-11-06 16:26:36 +00:00
|
|
|
IP=$(ip addr | grep -e "inet " | awk 'NR==2' | sed 's/^.*inet.//g; s/\/.*//g')
|
|
|
|
|
|
|
|
echo "$PREFIX$IP"
|
2019-10-24 19:09:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
get_local_ip
|