diff --git a/crates/nu-std/lib/mod.nu b/crates/nu-std/lib/mod.nu index 95e94325f4..8ed65171c8 100644 --- a/crates/nu-std/lib/mod.nu +++ b/crates/nu-std/lib/mod.nu @@ -108,10 +108,7 @@ export def clip [ --silent: bool # do not print the content of the clipboard to the standard output --no-notify: bool # do not throw a notification (only on linux) ] { - let input = $in - let input = if ($input | describe) == "string" { - $input | ansi strip - } else { $input } + let input = ($in | table | into string | ansi strip) match $nu.os-info.name { "linux" => { @@ -144,12 +141,7 @@ export def clip [ if not $silent { print $input - - print --no-newline $"(ansi white_italic)(ansi white_dimmed)saved to clipboard" - if ($input | describe) == "string" { - print " (stripped)" - } - print --no-newline $"(ansi reset)" + print $"(ansi white_italic)(ansi white_dimmed)saved to clipboard(ansi reset)" } if (not $no_notify) and ($nu.os-info.name == linux) {