Modifications to bar.sh and localip

This commit is contained in:
Archie Hilton (thytom) 2019-11-06 16:26:36 +00:00
parent d5a6b65c28
commit 3587e006fa
2 changed files with 4 additions and 2 deletions

View file

@ -6,7 +6,9 @@ PREFIX='ﯱ '
get_local_ip() get_local_ip()
{ {
echo "$PREFIX$(hostname -i)" IP=$(ip addr | grep -e "inet " | awk 'NR==2' | sed 's/^.*inet.//g; s/\/.*//g')
echo "$PREFIX$IP"
} }
get_local_ip get_local_ip