Last active
April 14, 2017 22:04
-
-
Save isaacd9/1c745ab20340738f26083559b27d7b59 to your computer and use it in GitHub Desktop.
Some inspiration for your shell. `wget` the raw version of this in `~` and add `source ~/.inspiration` to your .bashrc.
This file contains 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
#!/bin/bash | |
# Install jq (brew install jq or sudo apt-get install jq) | |
# Source this from your ~/.bashrc or ~/.profile to add the `pg` and `inspiration` aliases to your shell! | |
_pg() { | |
data=`curl -s https://instagraham.io/api/ | jq '"\(.quote) - \(.url)"' | fold -w 80 -s` | |
echo -e "\033[1;31m$data\033[0m" | |
} | |
alias pg=_pg; | |
alias inspiration=pg; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment