david/myzsh
david
/
myzsh
Archived
1
0
Fork 0

pushzshconfig 18.01.2013 19:31

This commit is contained in:
david 2013-01-18 19:31:32 +01:00
parent 551340981b
commit 117170e982
1 changed files with 9 additions and 1 deletions

View File

@ -97,4 +97,12 @@ update()
}
info()
{
echo "dns server(s):"
cat /etc/resolv.conf | grep --color=never nameserver
echo ""
echo "ip address(es):"
ip -f inet addr | grep inet | grep -v 127.0.0.1 | awk {'print $2'}
ip -f inet6 addr | grep inet6 | grep -v "::1/128" | grep -v "fe80:" | awk '{print $2 "\t" $5}'
}