Alfred 4.0 workflow which shorten the url via bitly.
- jq - jq is a lightweight and flexible command-line JSON processor
- Install jq
- Download and import the
shorten.alfredworkflow
. - Set the environment variable
BITLY_ACCESS_TOKEN
. - Optionally, if
jq
is in a non-standard location, set JQPATH. For example:/usr/lib/bin
.
You can get the JQPATH via which
command.
$ which jq
/usr/local/bin/jq
💡 Note that /usr/local/bin
is your JQPATH instead of /usr/local/bin/jq
You have to generate a personal access token from bitly. How-do-I-find-my-OAuth-access-token ?
bitly ${LONG_URL}
bitly https://stackoverflow.com/
Environment | Value |
---|---|
Workflow Version | v0.9.2 |
Alfred Version | v4.6.3[1285] |
Machine | MacBook Pro (13-inch, 2016, Four Thunderbolt 3 Ports) |
OS | macOS 12.2.1 (21D62) |
Result | ✅ |
Test Date | 2022/03/16 |