From 1678120a7218da4fc0b6c5c96497a5f66fe251b4 Mon Sep 17 00:00:00 2001 From: amtoine Date: Sat, 1 Apr 2023 09:06:47 +0200 Subject: [PATCH] add macOS to the supported OSes with `pbcopy` --- crates/nu-utils/standard_library/std.nu | 4 ++++ 1 file changed, 4 insertions(+) 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):