diff --git a/crates/nu-command/Cargo.toml b/crates/nu-command/Cargo.toml index 5be2783d3..bd6b1d393 100644 --- a/crates/nu-command/Cargo.toml +++ b/crates/nu-command/Cargo.toml @@ -106,7 +106,7 @@ libc = "0.2" umask = "2.1" nix = { version = "0.27", default-features = false, features = ["user", "resource"] } -[target.'cfg(all(unix, not(target_os = "macos"), not(target_os = "android"), not(target_os = "ios"), not(target_os = "netbsd")))'.dependencies] +[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies] procfs = "0.16.0" [target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies.trash] diff --git a/crates/nu-command/src/platform/ulimit.rs b/crates/nu-command/src/platform/ulimit.rs index e3ec3f313..41ab37452 100644 --- a/crates/nu-command/src/platform/ulimit.rs +++ b/crates/nu-command/src/platform/ulimit.rs @@ -233,7 +233,7 @@ static RESOURCE_ARRAY: Lazy> = Lazy::new(|| { "Maximum number of pseudo-terminals", 'P', 1, - Resource::RLIMIT_NPTY, + Resource::RLIMIT_NPTS, ), ]; diff --git a/crates/nu-command/src/system/ps.rs b/crates/nu-command/src/system/ps.rs index 730f6779c..ab358b407 100644 --- a/crates/nu-command/src/system/ps.rs +++ b/crates/nu-command/src/system/ps.rs @@ -5,8 +5,6 @@ use itertools::Itertools; not(target_os = "macos"), not(target_os = "windows"), not(target_os = "android"), - not(target_os = "ios"), - not(target_os = "netbsd") ))] use nu_protocol::Span; use nu_protocol::{ @@ -20,8 +18,6 @@ use nu_protocol::{ not(target_os = "macos"), not(target_os = "windows"), not(target_os = "android"), - not(target_os = "ios"), - not(target_os = "netbsd") ))] use procfs::WithCurrentSystemInfo; @@ -125,8 +121,6 @@ fn run_ps(engine_state: &EngineState, call: &Call) -> Result