This repository has been archived on 2022-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/home/.local/bin/urlify

11 lines
193 B
Bash
Executable File

#!/bin/sh
if [ "$1" = "-e" ]; then
curl https://unshorten.me/s/"$2"
elif [ "$1" = "-s" ]; then
curl https://tinyurl.com/api-create.php?url="$2"
else
echo "Wrong arguments"
return 1
fi