Giter Site home page Giter Site logo

fetcho's Introduction

Fetcho

A simple fetch made in C++

Image

Release Stars License

Installing

Arch-based

If you use an AUR helper, use it instead, e.g paru -S fetcho or paru -S fetcho-git

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

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.

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):

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:

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:

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:

export FO_LINETEXT="โ”€"

Acknowledgments

  • mekb-turtle for helping me with C stuff I didn't understand
  • angelofallars for creating treefetch, which inspired the design of fetcho (mainly the seperator)
  • dylanaraps for pretty much creating fetch programs

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.