dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit daf9c0401a4b46e72f56bde4955f8c4b56cf1744
parent dd08fdf656524d919cfc0586b9ec4c0ec3a3169e
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Mon, 18 Mar 2019 23:56:38 +0100

Display also public IP and VPN status

Diffstat:
Mbin/cowsay_ip.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/cowsay_ip.sh b/bin/cowsay_ip.sh @@ -1,3 +1,3 @@ #!/bin/sh -st -e watch -n 0.1 -t 'for i in `ip r`; do echo $i; done | grep -A 1 src | tail -1 | cowsay' +st -e watch -n 0.1 -t 'for i in `ip r`; do echo $i; done | grep -A 1 src | tail -1 | cowsay && dig +short myip.opendns.com @resolver1.opendns.com | cowthink; if [ -d "/proc/sys/net/ipv4/conf/tun0" ]; then cowsay -p VPN; fi'