Skip to content

Instantly share code, notes, and snippets.

@isaacd9
Last active April 14, 2017 22:04
Show Gist options
  • Save isaacd9/1c745ab20340738f26083559b27d7b59 to your computer and use it in GitHub Desktop.
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.
#!/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