GithubHelp home page GithubHelp logo

thatonecalculator / nerdfetch Goto Github PK

View Code? Open in Web Editor NEW
421.0 5.0 22.0 380 KB

A POSIX *nix fetch script using Nerdfonts

Home Page: https://aur.archlinux.org/packages/nerdfetch/

License: MIT License

Shell 100.00%
linux macos oses fetch neofetch cli unixporn unix system-info system-information

nerdfetch's Introduction

NerdFetch

A POSIX *nix (Linux, macOS, Android, BSD, etc) fetch script using Nerdfonts (and others)

Nerdfont

Screenshot

Phosphor Bold

Phosphor

Cozette

Cozette

Dependencies

To install and run

Packaging status

How to switch fonts

  • Nerdfonts is used by default
  • Use -c for Cozette
  • Use -p for Phosphor
  • Use -e for Emojis
yay -S nerdfetch # -git
nerdfetch

Make sure to replace yay with whatever AUR helper you use.

brew install nerdfetch
nerdfetch
nix-shell -p nerdfetch
nerdfetch

Add the GURU overlay: https://wiki.gentoo.org/wiki/Project:GURU/Information_for_End_Users (Not needed for LiGurOS)

emerge nerdfetch
nerdfetch
bulge install nerdfetch
nerdfetch
sudo birb nerdfetch
nerdfetch

Manually

Copy-paste this into your terminal:

sudo curl -fsSL https://raw.githubusercontent.com/ThatOneCalculator/NerdFetch/main/nerdfetch -o /usr/bin/nerdfetch
sudo chmod +x /usr/bin/nerdfetch
nerdfetch

Android with Termux

Copy-paste this into Termux:

curl -fsSL https://raw.githubusercontent.com/ThatOneCalculator/NerdFetch/main/nerdfetch -o /data/data/com.termux/files/usr/bin/nerdfetch
chmod a+x /data/data/com.termux/files/usr/bin/nerdfetch
nerdfetch

Run once

Note that this will not install the program.

curl -fsSL https://raw.githubusercontent.com/ThatOneCalculator/NerdFetch/main/nerdfetch | sh

Features

  • Strong cross-OS compatability
  • Not bloated
  • Portable
  • POSIX

OSes tested

  • Debian based Linux
  • Ubuntu based Linux
  • Arch based Linux
  • Gentoo based Linux
  • RedHat based Linux
  • OpenSUSE based Linux
  • Bedrock Linux
  • Alpine Linux
  • KISS Linux
  • Void Linux
  • Exherbo Linux
  • NixOS Linux
  • Solus Linux
  • yiffOS Linux
  • Slackware Linux
  • BirbOS Linux
  • macOS
  • Android
  • FreeBSD
  • OpenBSD
  • NetBSD
  • OpenWrt

Known issue(s)

  • nsh is currently unsupported (#46)

nerdfetch's People

Contributors

aeknt avatar darkgeek avatar eepykate avatar elsie19 avatar gracjankn avatar javacafe01 avatar loannaflip avatar polluks avatar poorpocketsmcnewhold avatar rilysh avatar thatonecalculator avatar uwueviee avatar williamotieno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nerdfetch's Issues

Fallback for os-release?

Our provider removed this file.
nerdfetch: line 23: /etc/os-release: No such file or directory

      ___     ********@web32.alfahosting-server.de
     (.. \    
     (<> |      4.18.0
    //  \ \   󰍛  25153/39949 MiB (62%)
   ( |  | /|  󰏔  516 (bin)
  _/\ __)/_)  󰅶  175 days, 16 hours, 39 mins
  \/-____\/     ██████████████████

By the way

$ cat /proc/version
Linux version 4.18.0-477.13.1.lve.el7h.x86_64 ([email protected]) (gcc version 8.2.1 20180905 (Red Hat 8.2.1-3) (GCC)) #1 SMP Thu Jun 1 16:49:27 UTC 2023

Flatpak

There might be some weird distro that only uses flatpak so I'll add that as an option (note to self to do this later today)

Fonts

Hi, what directory/folder do the font files go please?

Thanks
Debian bookworm arm64

Debian packages?

grafik
even better is your dpkg-query -W | wc -l but it's not executed

Symbols not displaying correctly using Fira Code

Symbols not displaying correctly using Fira Code

To Reproduce
Steps to reproduce the behavior:

  1. Run nerdfetch with Fira Code fonts

Expected behavior
Some symbols representing the informations type should be displayed

Screenshots
image

Desktop (please complete the following information):

  • OS: Arch Linux
  • Install method: yay -S nerdfetch

Doesn't work with `nsh`

Is this not POSIX?

nsh: parse error:   --> 68:8
   |
68 | 		done << EOF
   | 		    ^---
   |
   = expected and_or_list_sep or compound_list_sep

Spaces of wc

Maybe you should trim them...

      ___     [email protected] 
     (.. \      macOS 14.2.1
     (<> |      23.2.0
    //  \ \   󰍛  1157/8192 MiB (14%)
   ( |  | /|  󰏔        13 (port)
  _/\ __)/_)  󰅶  6 days, 8 hours, 56 mins
  \/-____\/     ██████████████████

WSL is not Android

$ ./nerdfetch
./nerdfetch: 19: ./nerdfetch: getprop: not found

      ___     stefan@Stefan-PC
     (.. \    󰀲  Android
     (<> |      4.4.0
    //  \ \   󰍛  8707/16335 MiB (53%)
   ( |  | /|  󰏔  0 (pacstall)
  _/\ __)/_)  󰅶  3 minutes
  \/-____\/     ██████████████████
$ uname -a
Linux Stefan-PC 4.4.0-19041-Microsoft #3636-Microsoft Thu Oct 19 17:41:00 PST 2023 x86_64 GNU/Linux

Doesn't run on macOS

I tested the script on macOS 11.1.

The command sudo install -m755 nerdfetch /usr/bin/nerdfetch from manual installation instruction shows error install: /usr/bin/nerdfetch: Operation not permitted.

If instead I manually place it anywhere in the $PATH and try to run it I only see the error ./nerdfetch: line 8: /etc/os-release: No such file or directory.

When line 8 is commented, I see error cat: /proc/sys/kernel/hostname: No such file or directory followed by the desired output.

When lines 8 and 9 are commented, everything works correctly.

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.