From 47d8a6d7bc0f6e3f0d45780519793100060fd269 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Fri, 27 Jan 2023 19:07:22 +0100 Subject: [PATCH] New unshorten function based on unshorten.me MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SeeĀ : https://unshorten.me/api --- zshrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zshrc b/zshrc index b09fb3a..6449748 100644 --- a/zshrc +++ b/zshrc @@ -1201,6 +1201,13 @@ function listalias(){ cat /etc/zsh/zshrc | egrep "alias|function" | grep -v "^#" | $PAGER } +# Get real address behind a shorten URL {{{ +# Require a function because the given argument need to be passed to curl +function unshorten() +{ + curl --silent https://unshorten.me/s/"${1-}" +} +# }}} # Get public IP address {{{ function ippub()