mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 14:47:47 +00:00
Fix scoop completions (#363)
This commit is contained in:
parent
dc87ff276c
commit
8b4ed82af3
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ def scoopInstalledAppsWithStar [] {
|
|||
# list of all manifests from all buckets
|
||||
def scoopAllApps [] {
|
||||
let bucketsDir = if ('SCOOP' in (env).name) { [ (getenv 'SCOOP'), 'buckets' ] | path join } else { [ (getenv 'USERPROFILE'), 'scoop', 'buckets' ] | path join }
|
||||
for bucket in (ls -s $bucketsDir | get name) { ls ([$bucketsDir, $bucket, 'bucket', '*.json'] | str collect '\') | get name | path basename | str substring ',-5' } | flatten | uniq
|
||||
(ls -s $bucketsDir | get name) | each {|bucket| ls ([$bucketsDir, $bucket, 'bucket', '*.json'] | str collect '\') | get name | path basename | str substring ',-5' } | flatten | uniq
|
||||
}
|
||||
|
||||
# list of all apps that are not installed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue