Created
January 6, 2017 21:44
-
-
Save colby/6c932ac1482e2648925952142cf41ce6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://gist.githubusercontent.com/colby/20fb4fc48f5ebf9a062da5fdf1f59f88/raw/c154e38fb44f9aaf1e6d8329cc5546bef41b57ea/dank-tags.csv | |
function dank() { | |
local tags=~/Desktop/dank-tags.csv | |
if [[ $# -gt 0 ]] | |
then | |
grep "$@" $tags | gsort --random-sort | head -n 1 | say | |
else | |
gsort --random-sort $tags | head -n 1 | say | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.