[HN Gopher] Neofetch: Command-line system information tool writt...
       ___________________________________________________________________
        
       Neofetch: Command-line system information tool written in bash
        
       Author : ingve
       Score  : 107 points
       Date   : 2021-07-24 15:15 UTC (7 hours ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | rashil2000 wrote:
       | There's a pure PowerShell version[0] of this, for Windows, called
       | winfetch. The repository also has a batch alternative for systems
       | not supporting PowerShell.
       | 
       | [0]: https://github.com/kiedtl/winfetch
        
       | chubot wrote:
       | This huge bash program can also be run under Oil :)
       | 
       |  _Oil 0.8.pre4 - The Biggest Shell Programs in the World_
       | http://www.oilshell.org/blog/2020/04/release-0.8.pre4.html#t...
       | 
       | (or at least it could as of a year ago)
        
       | diogenesjunior wrote:
       | I think the code could be easily re-written with Python.
        
         | walteweiss wrote:
         | But what's the point in doing that?
        
           | arminiusreturns wrote:
           | Not sure about the gp, but lots of people on hn love to hate
           | on bash, and give reasons either it's bad or _lang_ is
           | better.
        
           | mixmastamyk wrote:
           | Readability, maintainability, etc. if that matters to you.
        
         | simonw wrote:
         | It wouldn't be as good though, because then you'd have to
         | install Python in order to use it.
        
           | diogenesjunior wrote:
           | I think most Linux operating systems come with Python already
           | installed (at least all the ones I use do). It could be
           | uploaded to PyPI, which would mean installing PIP, but using
           | pre-installed libraries would mean you could simply use git
           | (which is usually pre-installed too), and then run `python3
           | setup.py install`.
        
             | jeppesen-io wrote:
             | > Neofetch supports almost 150 different operating systems.
             | From Linux to Windows, all the way to more obscure
             | operating systems like Minix, AIX and Haiku
             | 
             | You're making a lot of assuptions. Many servers don't have
             | git installed. Some only have python2. Some dont even have
             | that. Not to mention AIX or other non-linux platforms
        
               | diogenesjunior wrote:
               | How hard is it to install git and Python 3?
        
               | georgyo wrote:
               | In some environment, very hard. Especially embedded
               | systems and corporate machines.
        
               | diogenesjunior wrote:
               | If you cannot install git or py3 then installing bash
               | will be just as hard, no?
        
               | ylyn wrote:
               | Bash is a relatively small C program.
               | 
               | Python is a huge beast compared to Bash.
        
               | mixmastamyk wrote:
               | Installing bash will be just as hard in those situations.
        
               | hansel_der wrote:
               | guess the point was that bash is way more common than
               | python?
        
               | mixmastamyk wrote:
               | It's not, especially in the Windows-centric corporate
               | environments mentioned above. 0 not greater than 0.
        
               | IggleSniggle wrote:
               | Ok...but bash is waaayy more common. I could see this if
               | you were making an argument about Perl, since it's
               | probably pretty close to parity with bash in terms of
               | pre-existing in most environments...but python? No way!
        
               | mixmastamyk wrote:
               | Python is 10x more popular than perl these days. None are
               | installed by default on Windows.
        
               | bool3max wrote:
               | I'm not sure why you would want Neofetch on any embedded
               | system or corporate machine though.
        
               | saagarjha wrote:
               | What, you don't send your friends screenshots of the
               | beefy machine your work provided you? Or the potato you
               | are running Linux on?
        
       | infogulch wrote:
       | osquery is a related open source cross-platform system
       | information tool that exposes everything through sql syntax. The
       | scope of information you can query for is enormous:
       | https://osquery.io/schema/4.9.0/
        
       | r3trohack3r wrote:
       | Dylan is also the author of KISS Linux and the pure {sh,bash}
       | bibles. All interesting projects.
       | 
       | https://k1sslinux.org/ https://github.com/dylanaraps/pure-sh-
       | bible
        
         | forgotpwd16 wrote:
         | Also author of a pure-bash file manager
         | (https://github.com/dylanaraps/fff), TUI terminal pixer art
         | editor (https://github.com/dylanaraps/pxltrm), IRC client
         | (https://github.com/dylanaraps/birch), TUI client for
         | Transmission torrent daemon
         | (https://github.com/dylanaraps/torque), and even an attempt to
         | coreutils implementation
         | (https://github.com/dylanaraps/bareutils). A bash wizard
         | someone may say.
        
           | l2cluster wrote:
           | And my favorite, pywal (https://github.com/dylanaraps/pywal),
           | which generates color schemes from an image.
        
       | michaelsbradley wrote:
       | There's also ncneofetch:
       | 
       | https://notcurses.com/ncneofetch.1.html
       | 
       | http://www.youtube.com/watch?v=dcjkezf1ARY&t=1m22s
       | 
       | (timecode link)
        
       | simonw wrote:
       | The implementation of this - a single, huge bash script - is
       | actually a pretty neat thing to browse through if you want to
       | improve your knowledge of bash.
       | 
       | I particularly enjoyed this function that returns the ASCII-art
       | logo for the current platform:
       | https://github.com/dylanaraps/neofetch/blob/017aa041d86340f2...
        
         | linspace wrote:
         | And it's actually developed as a single file. I do wonder if
         | they have considered a solution like the sqlite amalgamation
         | https://www.sqlite.org/amalgamation.html
        
         | woodruffw wrote:
         | > I particularly enjoyed this function that returns the ASCII-
         | art logo for the current platform
         | 
         | I wonder how much of it is copied from screenfetch[1], which (I
         | believe) is the "grandfather" for a lot of these kinds of
         | information viewers.
         | 
         | I wrote my own version of screenfetch[2] a very long time ago,
         | and I'm pretty sure I just ripped their ASCII-art directly :-)
         | 
         | [1]:
         | https://github.com/KittyKatt/screenFetch/blob/c3a47890441166...
         | 
         | [2]: https://github.com/woodruffw/screenfetch-c
        
           | forgotpwd16 wrote:
           | Relevant, Dylan had written a piece[0] on why he created
           | Neofetch rather attempting to improve Screenfetch. It seems
           | he later blanked the page, I guess due to being a bit heated.
           | 
           | [0]: https://github.com/dylanaraps/neofetch/wiki/Neofetch-
           | vs.-Scr...
        
       | normac2 wrote:
       | I feel like this should be a bunch of files that are concatenated
       | in the makefile, not one giant 10,000SLOC script. Otherwise it
       | seems pretty organized and looks like it's following bash best
       | practices.
        
       | mushufasa wrote:
       | I wonder what prompted this reposting.
        
         | literallyaduck wrote:
         | Did I miss some news about neofetch?
        
         | jmcgough wrote:
         | Usually someone just discovers it for the first time.
        
         | grae_QED wrote:
         | Probably a karma bot
        
           | ibraheemdev wrote:
           | Or someone who thought it was interesting and wanted to share
           | it with others, not knowing that it had been posted before.
        
             | grae_QED wrote:
             | They have over 140,000 points, post multiple times a day
             | and never write any comments. They sure look like a bot.
             | 
             | I've seen lots of profiles made around 2012 as well that
             | post regularly but only have a tenth the amount of points
             | as this one has.
             | 
             | Also, not sure why you're so quick to defend them. Bots are
             | very common now a days. Its not unreasonable to assume most
             | of the profiles that produce massive amounts of content on
             | most social media platforms are bots.
        
             | ingve wrote:
             | Pretty close! Actually, someone was working on a short bash
             | script for backing up some files, tried to remove some
             | hardcoded values, had to use google to figure out how to
             | get the information dynamically using `sysctl` and
             | `system_profiler`, ended up on the Github page for
             | neofetch, and thought "hey this is great, maybe this could
             | be useful for other people as well!" and submitted it.
        
       | 2OEH8eoCRo0 wrote:
       | Somewhat off topic but what terminal is this:
       | 
       | https://camo.githubusercontent.com/82b03feab20083a17944229ea...
       | 
       | I've only ever used whatever the default terminal is so this
       | seems fancy. Looks nice.
        
         | soberpeach wrote:
         | It shows xfce4-terminal
        
           | 2OEH8eoCRo0 wrote:
           | Oh. I see.
        
         | ducktective wrote:
         | I also use Xfce4-terminal but that is not its default theme.
         | Pretty much any modern terminal emulator can be tweaked to have
         | a purple background...
        
         | BanazirGalbasi wrote:
         | The fancy appearance is probably due to user customizations.
         | Simply changing the terminal font to one you like better and
         | changing the background from pure black to another color (while
         | keeping it dark) makes a big difference on appearance. The rest
         | is probably window decorations, which means tweaking your WM
         | theme. [r/unixporn](https://old.reddit.com/r/unixporn) has a
         | lot of good examples, and most people share dotfiles for you to
         | borrow from.
        
       ___________________________________________________________________
       (page generated 2021-07-24 23:00 UTC)