Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/info-mono/diyfetch
๐งฐ๐ The ultimate fetch tool template
https://github.com/info-mono/diyfetch
cli fetch gum shell-script system-fetch terminal tutorial
Last synced: 2 months ago
JSON representation
๐งฐ๐ The ultimate fetch tool template
- Host: GitHub
- URL: https://github.com/info-mono/diyfetch
- Owner: info-mono
- License: gpl-3.0
- Created: 2022-07-29T08:11:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-07T15:18:39.000Z (over 1 year ago)
- Last Synced: 2024-10-17T12:21:54.548Z (2 months ago)
- Topics: cli, fetch, gum, shell-script, system-fetch, terminal, tutorial
- Language: Shell
- Homepage:
- Size: 73.2 KB
- Stars: 224
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-fetch - diyfetch - The ultimate fetch tool template. `Shell` (Operation System / Cross Platform)
README
## ๐ก About
**DIYfetch** it the shell script template for writing adaptive fetch tool utilizing
[Gum's join command](https://github.com/charmbracelet/gum#join).## ๐ Setup
### ๐งพ Dependencies
- [POSIX compliance shell (`sh`, `bash`, `zsh`, ...)](https://wikipedia.org/wiki/Unix_shell)
- [Gum](https://github.com/charmbracelet/gum) ([installation guide](https://github.com/charmbracelet/gum#installation))### ๐ฅ Download
Download the [`diyfetch`](https://github.com/info-mono/diyfetch/blob/main/diyfetch) file:
```sh
curl https://raw.githubusercontent.com/info-mono/diyfetch/main/diyfetch > ~/.local/bin/diyfetch
chmod +x ~/.local/bin/diyfetch
```> **Note** feel free to change the file name to what ever you want.
### โ๏ธ Customize
Open the fetch script with your favorite editor then add, delete and change whatever you prefer.
The script contain detailed guide to customize it.### โจ๏ธ Usage
Finally, run the fetch script in the terminal:
```sh
diyfetch
```## ๐ผ๏ธ Showcases
Here are some examples, you can find their script in [`examples/`](examples).
### [Insert Name](examples/insertname)
This example is inspired by [Insert Name from Neofetch themes](https://github.com/Chick2D/neofetch-themes#insert-name).
### [Idlifetch](examples/idlifetch)
This example is inspired by [Idlifetch from Neofetch themes](https://github.com/Chick2D/neofetch-themes#idlifetch).
### [Ozozfetch](examples/ozozfetch)
This example is inspired by [Ozozfetch from Neofetch themes](https://github.com/Chick2D/neofetch-themes#ozozfetch).
### [Fm6000](examples/fm6000)
This example is inspired by [Fetch-master 6000](https://github.com/anhsirk0/fetch-master-6000).
### [Laundryfetch](examples/laundryfetch)
A tiny fetch I make to celebrate my No.1 victory at the local game jam.
> I buy a smart washing machine for mommy with the prize money.
### [Timefetch](examples/timefetch)
Why stop at system informations. You can fetch a bunch of time related information as well!
> **Note**
> Requirements: [`figlet`](https://www.figlet.org).### [Weatherfetch](examples/weatherfetch)
This example utilize [`wttr.in`'s API](https://github.com/chubin/wttr.in#json-output)
with [Wego's ansi arts](https://github.com/schachmat/wego).
> **Note**
> Requirements: [`jq`](https://stedolan.github.io/jq).### [Pokefetch](examples/pokefetch)
Poke~~dex~~ fetch! This example utilize [PokeAPI](https://pokeapi.co)
and [Pokemon colorscripts](https://gitlab.com/phoneybadger/pokemon-colorscripts).> **Note**
> Requirements: [`jq`](https://stedolan.github.io/jq).## ๐ Credits
Special thanks to:
- [**Neofetch Themes**](https://github.com/Chick2D/neofetch-themes) by [Chick Chan](https://github.com/Chick2D)
- [**Neofetch**](https://github.com/dylanaraps/neofetch) by [Dylan](https://github.com/dylanaraps)
- [**Pfetch**](https://github.com/dylanaraps/pfetch) also by [Dylan](https://github.com/dylanaraps)
- [**Ufetch**](https://gitlab.com/jschx/ufetch) by [Jschx](https://gitlab.com/jschx)
- [**Pure sh bible**](https://github.com/dylanaraps/pure-sh-bible) also by [Dylan](https://github.com/dylanaraps)
- [**ShellCheck**](https://www.shellcheck.net) also by [Vidar Holen](https://github.com/koalaman)