- Install dependent libraries
sudo apt-get install jq xclip
- Get your bitly token.
- Download
.shorten-url.sh
to your home directory - Make it executable by
chmod +x .shorten-url.sh
- add to your profile eg:
.zshrc
export BITLY_TOKEN="xxxxxxxxxxxxxx"
alias surl="~/.shorten_url.sh"
Then you are Good To Go.