blob: 91a74c0df5c640ae4a6ecbc163ae0e5b2bbb4be2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/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
|