Skip to content

AlphaTechnolog/cutefetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cutefetch

Cutefetch is a little fetch utility completely made in the C programming language which aims to be simple and to show a little cute bunny in your terminal as well as relevant information about your current running system.

banner

Features

  • Header
  • Bunny banner
  • Os name
  • Kernel version
  • Current used ram
  • Hostname
  • Disk: Used disk space / Total disk space (Shows mountpoints)
  • Color palette

Requirements

  • gcc / clang
  • gnumake
  • git
  • sudo
  • uname (you should have it already installed)
  • your hostname at /etc/hostname (you may already have that file there)
  • A nerd font (to correctly render the glyphs at the color palette)

Installation

Arch Linux

In an arch system you can build it by using your preferred aur helper such as yay per example

yay -S cutefetch

NixOS

For NixOS you could use the provided flake and then install the exposed package at cutefetch.packages.${pkgs.system}.default. Take as reference the next dev shell which provides a cutefetch installation.

{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs";
    flake-utils.url = "github:numtide/flake-utils";
    cutefetch.url = "github:AlphaTechnolog/cutefetch";
  };

  outputs = { self, nixpkgs, flake-utils, ... } @inputs: flake-utils.lib.eachDefaultSystem(system: let
    pkgs = import nixpkgs {
      inherit system;
      overlays = [
        (_: prev: (with inputs; {
          cutefetch = cutefetch.packages.${prev.system}.default;
        }))
      ];
    };
  in (with pkgs; {
    devShells.default = mkShell {
      buildInputs = [cutefetch];
    };
  }));
}

Then if you execute nix develop in the folder where that flake.nix file is, you will get a shell where you can execute cutefetch.

So, if you're using NixOS, import the cutefetch flake in your inputs, make an overlay, just like in the example, and then use home.packages if you're using home manager or environment.systemPackages for system wide install to make cutefetch available in your system.

Gentoo Linux

When running gentoo, you could use the Alxhr0's andromeda repository which includes an ebuild for cutefetch, check it out here.

Include the repository by following the next commands:

emerge -av app-eselect/eselect-repository
eselect repository add andromeda git https://gitlab.com/Alxhr0/andromeda.git
emerge --sync andromeda

And now you can install it by unmasking it and accepting the license:

echo 'app-misc/cutefetch **' >> /etc/portage/package.accept_keywords/cutefetch
echo 'app-misc/cutefetch all-rights-reserved' >> /etc/portage/package.license/cutefetch
emerge -av app-misc/cutefetch

Others package managers

We're searching for contributors for packaging cutefetch on others distros, if you like cutefetch but it's not available in your distro, you could try packaging it for it, or adding a suggestion in the issues tab ;)

Else, you can try manually building it, it's easy :)

Manual building

Run a little list of shell script commands.

mkdir -pv ~/repo && cd ~/repo
git clone https://github.com/AlphaTechnolog/cutefetch.git && cd cutefetch
sudo make install

Then just run in your terminal cutefetch, and you'll see the cute bunny appearing in your terminal screen :)

Compilation tricks

You may want to build it using clang, you can do it by overriding the CC variable:

sudo make CC=clang DESTDIR=/usr/bin all install

You can also set a destdir on where you wanna install cutefetch.

sudo make DESTDIR=/usr/bin install
sudo make DESTDIR=/usr/local/bin install
sudo make DESTIDR=/usr/local/bin uninstall
# ...

Dev notes

  • Cleaning the file tree
make clean

if you already have ran sudo make install without having the program compiled you may have to run

sudo make clean
  • Fresh compilation
make clean all

Thanks to

  • Alxhr0: Who've built & tested cutefetch on others distros and packaged it for gentoo.

Enjoy

Thanks for reading me! Enjoy with cutefetch, also if you liked this little project please give me a star on this repo, that will support me and my work at GitHub :)