https://github.com/callmeechocodes/fetcho
:sparkles: A simple fetch made in C++
https://github.com/callmeechocodes/fetcho
cpp fetch linux linux-command neofetch sysfetch
Last synced: 5 months ago
JSON representation
:sparkles: A simple fetch made in C++
- Host: GitHub
- URL: https://github.com/callmeechocodes/fetcho
- Owner: CallMeEchoCodes
- License: mpl-2.0
- Created: 2023-05-11T03:18:17.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-17T02:11:17.000Z (over 2 years ago)
- Last Synced: 2025-04-12T08:44:56.257Z (12 months ago)
- Topics: cpp, fetch, linux, linux-command, neofetch, sysfetch
- Language: C++
- Homepage:
- Size: 43 KB
- Stars: 14
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fetcho
A simple fetch made in `C++`




## Installing
### Arch-based
If you use an AUR helper, use it instead, e.g `paru -S fetcho` or `paru -S fetcho-git`
```bash
git clone https://aur.archlinux.org/fetcho.git # use fetcho-git.git instead for latest commit
cd foto
makepkg -si
```
### Debian-based
A .deb package is planned for an easier installation
```bash
sudo apt install build-essential libprocps-dev
git clone https://github.com/CallMeEchoCodes/fetcho.git
cd foto
git checkout "$(git describe --tags --abbrev=0)" # checkout to latest tag, omit for latest commit
sudo make install RELEASE=1
```
### Other distros
Install `libprocps` (also known as `procps-ng`) using your package manager before you do this.
```bash
git clone https://github.com/CallMeEchoCodes/fetcho.git
cd fetcho
git checkout "$(git describe --tags --abbrev=0)" # checkout to latest tag, omit for latest commit
sudo make install RELEASE=1
```
## Customizing
Fetcho is customized using environment variables.
These can be set by adding a line like this to your shells configuration file (eg. .bashrc, .zshrc, config.fish):
```bash
export VARIABLE_NAME="variable value"
```
### `FO_MODULES`
`FO_MODULES` defines the modules that should be shown.
It is a string that contains a list of modules seperated by a space. The modules will be shown from first to last in the variable.
**Valid modules**:
`os`
`kernel`
`uptime`
`shell`
`ram`
`de`
`editor`
`host`
`arch`
**Default**:
```bash
export FO_MODULES="os kernel uptime shell ram de editor host arch"
```
### `FO_NERDFONTS`
`FO_NERDFONTS` is used to decide if icons should be shown. If it is set to either `"true"` or `"1"` then icons will be shown. Icons are automatically disabled if you are in a TTY regardless of what this variable is set to.
**Default**:
```bash
export FO_NERDFONTS="false"
```
### `FO_LINETEXT`
`FO_LINETEXT` is the character used for the seperator line between the `username@hostname` and the modules. Make sure it is only 1 character or strange behavior can occur.
**Default**:
```bash
export FO_LINETEXT="─"
```
## Acknowledgments
* [mekb-turtle](https://github.com/mekb-turtle) for helping me with C stuff I didn't understand
* [angelofallars](https://github.com/angelofallars) for creating treefetch, which inspired the design of fetcho (mainly the seperator)
* [dylanaraps](https://github.com/dylanaraps) for pretty much creating fetch programs