faynopi / meowfetch Goto Github PK
View Code? Open in Web Editor NEWminimal system information fetcher program written in go.
License: MIT License
minimal system information fetcher program written in go.
License: MIT License
From #4
9p4:
If there is no config found, fallback to a system-wide config in /etc/meow.conf
Itsnexn:
We do not produce configuration at /etc/meow.conf by default; instead, it is generated in $HOME/.meow.conf or $XDG CONFIG HOME/meowfetch/meow.conf. As a result, we don't require a backup for it.
At the parser function, we additionally check to see if a directory exists.
As a result, I don't believe we need a fallback value for this function.
9p4:
There is an application for this. When calling meowfetch as part of a motd script, the script does not have environment variables initialized. Since the os.UserHomeDir and os.LookupEnv both use environment variables to get the location of the configuration, there ought to be a way for the system to fallback to a system-wide config.
https://pkg.go.dev/os#UserHomeDir
Itsnexn:
When calling meowfetch as part of a motd script, the script does not have environment variables initialized.
I don't understand what you mean by motd script.
Since the os.UserHomeDir and os.LookupEnv both use environment variables to get the location of the configuration, there ought to be a way for the system to fallback to a system-wide config.
there is no system-wide configuration. the program will generate config by itself if it does not exist.
please open an issue about this problem and we could continue this conversation there.
I think the best approach would be to copy the config file using the makefile at the install time. we could remove the embed and then change the parser.
Meowfetch only displaying SH as the system shell even when BASH, ZSH, FISH, etc are in use.
System Details -
EndeavourOS - Arch 5.19.2-arch1-1 Kernel
ZSH Shell (Do have Bash and FISH installed)
Steps to replicate -
Run meowfetch
with the shell
option added to widgets =
Produces the following for detected shell -
Run meowfetch
using env SHELL=<shellofchoice> meowfetch
Completes with detected shell as sh
Love the idea! Looks super cute.
Two issues on macOS 12.3.1 (21E258):
make install
in iTerm2 3.4.15, it crashes the shell window/tab.λ make
λ make install
[Process completed]
Happy to help troubleshoot 👌
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.