From e94dd284de3f9bfdcb7854612e7c81cd1e11c334 Mon Sep 17 00:00:00 2001 From: Morgan Wattiez Date: Fri, 16 Aug 2019 16:41:13 +0200 Subject: [PATCH] cloud services via curl * latency, moon status and ip info --- dot_zsh_aliases | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dot_zsh_aliases b/dot_zsh_aliases index be0eba8..c699801 100644 --- a/dot_zsh_aliases +++ b/dot_zsh_aliases @@ -62,6 +62,10 @@ alias tunnel='sshuttle --dns -r "$(whoami)@management.collibra.com" 0/0' alias sshpub='cat ~/.ssh/id_ed25519.pub' alias ssla="openssl x509 -alias -noout -in" # Usage : ssla +# Network +alias ip='echo $(curl ident.me 2>/dev/null)' +alias ipinfo='curl "ipinfo.io/"$(ip)' + # Misc alias h='cd $HOME' alias diff='colordiff' @@ -86,6 +90,9 @@ alias current_year='`echo date +"%Y"`' alias meteo='weather' alias learnmore="apropos . | sort --random-sort | awk 'NR == 1 {print$1}' | cut -d'(' -f 1 | xargs man" alias biggerthan10='biggerthan 10M' +alias latency='curl cheat.sh/latency' +alias moon='curl wttr.in/Moon' +alias lune='moon' # Show/hide hidden files in Finder alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"