Skip to content

Instantly share code, notes, and snippets.

@andykais
Created January 12, 2017 05:14
Show Gist options
  • Save andykais/65108637cafa1dcbe140c3f630785da6 to your computer and use it in GitHub Desktop.
Save andykais/65108637cafa1dcbe140c3f630785da6 to your computer and use it in GitHub Desktop.
#!/bin/bash
export DATE=$(date -d $(date +"%D") +"%s")
export FILENAME=/tmp/qod_$DATE.json
TITLE_TAG=~/bin/data/ascii_name.txt
urxvtc -e \
bash -c "\
. ~/bin/helpers/qod.sh \
&& qod \
; cat $TITLE_TAG \
&& jq_quote \
&& read todays_quote < <(jq -r '.quote' $FILENAME) \
; $SHELL \
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment