dotfiles

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

commit e2d104461fc28a26993d5890d1069e806630539f
parent 45593860bd1f013a5982bfe280dfe0b25eadfe2b
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Wed, 19 Jun 2019 20:36:41 +0200

Add display of nordvpn settings

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/dash -st -e watch -n 0.1 -t 'for i in `ip r`; do echo $i; done | grep -A 1 src | tail -1 | cowsay; if [ -d "/proc/sys/net/ipv4/conf/tun0" ]; then nordvpn status | cowsay -b; else cowsay -p no VPN; fi' +st -e watch -n 0.1 -t 'for i in `ip r`; do echo $i; done | grep -A 1 src | tail -1 | cowsay; if [ -d "/proc/sys/net/ipv4/conf/tun0" ]; then nordvpn status | cowsay -n -b && nordvpn settings | cowsay -n -b; else cowsay -p no VPN; fi'