We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03ce4ce commit f19207dCopy full SHA for f19207d
winfetch.ps1
@@ -841,14 +841,9 @@ function info_pkgs {
841
}
842
843
if ("scoop" -in $ShowPkgs) {
844
- if (Test-Path "~/scoop/apps") {
845
- $scoopdir = "~/scoop/apps"
846
- } elseif (Get-Command -Name scoop -ErrorAction Ignore) {
847
- $scoop = & scoop which scoop.ps1
848
- $scoopdir = (Resolve-Path "$(Split-Path -Path $scoop)\..\..\..").Path
849
- }
+ $scoopdir = if ($Env:SCOOP) { "$Env:SCOOP\apps" } else { "$Env:UserProfile\scoop\apps" }
850
851
- if ($scoopdir) {
+ if (Test-Path $scoopdir) {
852
$scooppkg = (Get-ChildItem -Path $scoopdir -Directory).Count - 1
853
854
0 commit comments