Custom zsh plugin to generate random Quotes and Facts(nerd, funny, love, inspire, facts).
It's super easy to use. Just type any of nerd/funny/love/inspire/facts
in your terminal and enjoy.
Depending on the plugin manager you use, add following to your .zshrc
file and source it.
-
Clone the repo into your custom plugins folder, usually at (~/.oh-my-zsh/custom/plugins/)
git clone https://gitlab.com/vkolagotla/zsh-random-quotes.git ~/.oh-my-zsh/custom/plugins/zsh-random-quotes
-
Add
zsh-random-quotes
to .zshrc plugins list, usually at (~/.zshrc)plugins=(... zsh-random-quotes)
zplug "vkolagotla/zsh-random-quotes"
antigen bundle "vkolagotla/zsh-random-quotes"
zgen load "vkolagotla/zsh-random-quotes"
Source .zshrc file
source ~/.zshrc
Sample outputs
- Add more categories
I created this plugin for personal use. The plugin LICENSE is only valid for the code. Since the quotes are fetched from an external source(online), i do not own that data. I would suggest you to not use the plugin for any commercial purpose, unless you have the permission to do so from those respective data sources.
Inspired from:
- https://github.com/oldratlee/hacker-quotes
- https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/rand-quote
Quotes Sources:
- https://github.com/oldratlee/hacker-quotes
- https://www.generatormix.com/
- http://randomfactgenerator.net/