From c5baba5f5f2ba6466401940621d43665a7ad73a9 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Sun, 3 Nov 2019 03:27:14 +0100 Subject: [PATCH] Another useful alias for getting IP information Also use -s flag in curl so we don't get progress bars. --- dotfiles/.config/bash/profile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dotfiles/.config/bash/profile b/dotfiles/.config/bash/profile index 71c3852..b522741 100644 --- a/dotfiles/.config/bash/profile +++ b/dotfiles/.config/bash/profile @@ -215,8 +215,9 @@ alias tail='tail -n $((${LINES:-15}-5))' # below using the OpenDNS resolver doesn't work when connected to # ExpressVPN because all DNS requests are handled by the ExpressVPN DNS # servers and the OpenDNS DNS resolver is blocked. -alias myip="curl https://ifconfig.co" -#alias myip="curl https://ifconfig.me" +alias ipinfo="curl -s ipinfo.io" +alias myip="curl -s https://ifconfig.co" +#alias myip="curl -s https://ifconfig.me" #alias myip="dig +short myip.opendns.com @resolver1.opendns.com" alias light='_update_colors light'