New unshorten function based on unshorten.me
See : https://unshorten.me/api
This commit is contained in:
parent
0e99fa073a
commit
47d8a6d7bc
7
zshrc
7
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()
|
||||
|
|
Loading…
Reference in New Issue