A simple Bash script to show qwotes on terminal startup... or anywhere :)
jq
Command line JSON parser.curl
Make the script executable and place it anywhere in your PATH
$ git clone https://github.com/schmeekygeek/qwote.git
$ cd qwotes
$ chmod +x qwotes
$ cp qwotes ~/.local/bin/
- Place this somewhere you like in your
.bashrc
RED='\033[0;31m'
BLUE='\033[0;34m'
NC='\033[0m'
echo
echo -en "${RED}\e[3m❤ $(cat ~/.cache/qwote.txt) ❤\e[0m${NC}"
echo -en "\n${BLUE}\e[3m- $(cat ~/.cache/author.txt)\e[0m${NC}"
echo
- Then do,
$ qwotes
Generating qwote...
Successfully generated qwote!
Your qwote should be visible now.
For a new qwote, simply run
qwotes
again and refresh your terminal:
$ qwotes && clear && source ~/.bashrc
Remove the script from the PATH
$ rm ~/.local/bin/qwotes
- api.quotable.io The API