From e9963a001b329e44f57dcd456cfb287f6d975238 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 9 Dec 2016 09:46:08 +0000 Subject: [PATCH] Get functions --- etc/profile.d/functions | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.47.3