mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-08-16 17:00:32 +03:00
parent
6d98fee3ba
commit
5e51b23b1f
@ -14,7 +14,7 @@ def scoopInstalledApps [] {
|
||||
let localAppDir = if ('SCOOP' in $env) { [$env.SCOOP, 'apps'] | path join } else { [$env.USERPROFILE, 'scoop', 'apps'] | path join }
|
||||
let localApps = (ls $localAppDir | get name | path basename)
|
||||
|
||||
let globalAppDir = if ('SCOOP_GLOBAL' in $env) { [$env.SCOOP_GLOBAL), 'apps'] | path join } else { [$env.ProgramData, 'scoop', 'apps'] | path join }
|
||||
let globalAppDir = if ('SCOOP_GLOBAL' in $env) { [$env.SCOOP_GLOBAL, 'apps'] | path join } else { [$env.ProgramData, 'scoop', 'apps'] | path join }
|
||||
let globalApps = if ($globalAppDir | path exists) { ls $globalAppDir | get name | path basename }
|
||||
|
||||
$localApps | append $globalApps
|
||||
|
Loading…
Reference in New Issue
Block a user