From: Nicolas Boisselier Date: Fri, 9 Dec 2016 09:46:08 +0000 (+0000) Subject: Get functions X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=e9963a001b329e44f57dcd456cfb287f6d975238;p=nb.git Get functions --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index c56674c6..26d00b92 100644 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -724,7 +724,7 @@ myip() { return 1 } -Get() { +get() { if which curl &>/dev/null; then curl -sk $* @@ -738,8 +738,9 @@ Get() { echo "Can't find web client" 1>&2 fi } +alias Get=get -Head() { +head() { if which curl &>/dev/null; then curl -sk --head $* @@ -753,3 +754,4 @@ Head() { echo "Can't find web client" 1>&2 fi } +alias Head=head