New unshorten function based on unshorten.me

See : https://unshorten.me/api
This commit is contained in:
Jeremy Gardais 2023-01-27 19:07:22 +01:00
parent 0e99fa073a
commit 47d8a6d7bc
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 7 additions and 0 deletions

7
zshrc
View File

@ -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()