mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 02:57:44 +00:00
nu: hop off filter
This commit is contained in:
parent
de477aa89c
commit
e5b325a76f
2 changed files with 4 additions and 4 deletions
|
@ -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 }
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue