diff --git a/crates/nu-utils/standard_library/std.nu b/crates/nu-utils/standard_library/std.nu index f7bb3b275..d50753caa 100644 --- a/crates/nu-utils/standard_library/std.nu +++ b/crates/nu-utils/standard_library/std.nu @@ -465,6 +465,10 @@ export def clip [ check-clipboard clip.exe --system $"('xorg' | pretty-command) on linux" $input | clip.exe }, + "macos" => { + check-clipboard pbcopy --system macOS + $input | pbcopy + }, _ => { error make --unspanned { msg: $"(ansi red)unknown_operating_system(ansi reset):