https://github.com/pforret/xkcd
View a XKCD comic in your console/TTY
https://github.com/pforret/xkcd
bashew iterm2 kitty-terminal terminal xkcd
Last synced: 7 months ago
JSON representation
View a XKCD comic in your console/TTY
- Host: GitHub
- URL: https://github.com/pforret/xkcd
- Owner: pforret
- License: mit
- Created: 2022-03-16T15:14:32.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-16T16:11:13.000Z (over 3 years ago)
- Last Synced: 2025-01-13T22:21:26.823Z (9 months ago)
- Topics: bashew, iterm2, kitty-terminal, terminal, xkcd
- Language: Shell
- Homepage:
- Size: 605 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README





[](https://basher.gitparade.com/package/)# xkcd
View a XKCD comic in your console. Works with [Kitty](https://sw.kovidgoyal.net/kitty/) and [iTerm2](https://iterm2.com/)

inspired by [Read XKCD in the terminal with some bash magic](https://www.roboleary.net/2022/02/24/xkcd-in-the-terminal-with-some-bash-magic.html)
## 🔥 Usage
```
Description: View a XKCD comic in your console
Usage: xkcd [-h] [-q] [-v] [-f] [-l ] [-t ]
Flags, options and parameters:
-h|--help : [flag] show usage [default: off]
-q|--quiet : [flag] no output [default: off]
-v|--verbose : [flag] output more [default: off]
-f|--force : [flag] do not ask for confirmation (always yes) [default: off]
-l|--log_dir > : [option] folder for log files [default: /Users/pforret/log/xkcd]
-t|--tmp_dir > : [option] folder for temp files [default: /tmp/xkcd]
: [parameter] action to perform: last/random### TIPS & EXAMPLES
* use xkcd last to view last/latest XKCD comic
* use xkcd random to view random XKCD comic
* use xkcd check to check if this script is ready to execute and what values the options/flags are
xkcd check
* use xkcd env to generate an example .env file
xkcd env > .env
* use xkcd update to update to the latest version
xkcd update
* >>> bash script created with pforret/bashew
* >>> for bash development, also check out pforret/setver and pforret/progressbar
```## 🚀 Installation
with [basher](https://github.com/basherpm/basher)
$ basher install pforret/xkcd
or with `git`
$ git clone https://github.com/pforret/xkcd.git
$ cd xkcd## 📝 Acknowledgements
* script created with [bashew](https://github.com/pforret/bashew)
© 2022 Peter Forret