Coder Social home page Coder Social logo

schmeekygeek / qwotes Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 16 KB

A simple bash script to display quotes on terminal startup.

Home Page: https://schmeeky.pages.dev/posts/qwotes

License: GNU General Public License v3.0

Shell 100.00%
bash cli linux unixporn

qwotes's Introduction

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

qwotes's People

Contributors

schmeekygeek avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.