1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

nu: hop off filter

This commit is contained in:
RGBCube 2025-06-30 17:34:03 +03:00
parent de477aa89c
commit e5b325a76f
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
2 changed files with 4 additions and 4 deletions

View file

@ -72,7 +72,7 @@ module dump {
let dump_prefix = dump-path | path join ...($namespace | split row ".")
let dump_parent_contents = glob ($dump_prefix | path parse | get parent | path join "**" "*.md")
let dump_matches = $dump_parent_contents | filter { str starts-with $dump_prefix }
let dump_matches = $dump_parent_contents | where { str starts-with $dump_prefix }
ls ...$dump_matches | each {
merge { path: $in.name }

View file

@ -48,7 +48,7 @@ def main --wrapped [
let args_split = $arguments | prepend "" | split list "--"
let nh_flags = [
"--hostname" $host
] | append ($args_split | get 0 | filter { $in != "" })
] | append ($args_split | get 0 | where { $in != "" })
let nix_flags = [
"--option" "accept-flake-config" "true"
@ -100,11 +100,11 @@ def darwin-shadow-xcode-popup [] {
let shadoweds = ls /usr/bin
| flatten
| filter {
| where {
# All xcode-select binaries are the same size, so we can narrow down and not run weird stuff.
$in.size == $original_size
}
| filter {
| where {
^$in.name e>| str contains "xcode-select: note: No developer tools were found, requesting install."
}
| get name