diff --git a/modules/common/nushell/environment.nu b/modules/common/nushell/environment.nu index 92adbcf..11fa86d 100644 --- a/modules/common/nushell/environment.nu +++ b/modules/common/nushell/environment.nu @@ -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 } diff --git a/rebuild.nu b/rebuild.nu index 798fb73..229d5c9 100755 --- a/rebuild.nu +++ b/rebuild.nu @@ -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