neofetch
neofetch copied to clipboard
neofetch: Strengthen scoop/choco app reporting
Description
This PR enhances scoop and chocolatey package reporting, as it:
- Uses
cygpathto determine where drive C: is mounted (while defaulting to/cygdrive/c). - Finds Scoop's package directories if installed in non-standard directories.
- Processes both Scoop's local (user) and system (global) installed packages.
- Reports the above package counts separately.
- Reports chocolatey's package count separately.
Tested and working in Cygwin, Msys2, git-bash, and WSL environments, where C: is mounted at /c and both %SCOOP% and %SCOOP_GLOBAL% are used.
What happens when cygpath is unavailable? (Is it available if CYGWIN is absent? ie, just wsl or msys2 etc).
What happens when cygpath is unavailable? (Is it available if CYGWIN is absent? ie, just wsl or msys2 etc).
Cygwin, msys2, mingw, and git-bash environments all have cygpath and /proc/mounts. But if cygpath fails to be found in the path, the code will default to the existing functionality, i.e., using /cygdrive/c/ProgramData.
While wsl runs under Windows, it does not have scoop or choco available, so none of this code is executed.
@dylanaraps Why is this PR labeled as "Not mergeable"?
@dylanaraps Why is this PR labeled as "Not mergeable"?
@dylanaraps Ping.
Thank you for your contribution!
This PR is merged into hyfetch since this repo (dylanaraps/neofetch) seems no longer maintained.
HyFetch is a fork of neofetch with LGBTQ pride flags, but the repo also maintains an updated version of the original neofetch, addressing many pull requests that are not merged in the original repo.
Read the "Running Updated Original Neofetch" section for more info!