Skip to content

schmeekygeek/qwotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Qwote

A simple Bash script to show qwotes on terminal startup... or anywhere :)

Dependencies

  • jq Command line JSON parser.
  • curl

Installation

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/

Usage

  • 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

Uninstalling

Remove the script from the PATH

$ rm ~/.local/bin/qwotes

Credits

About

A simple bash script to display quotes on terminal startup.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages