Files
nushell/scripts
Motalleb FallahnezhadandMotalleb Fallahnezhad 2b173be78a Feat: native clipboard (using arboard) (#17572)
## Release notes summary - What our users need to know
### Cross-platform clipboard command
This PR integrates
[nu_plugin_clipboard](https://github.com/fmotalleb/nu_plugin_clipboard)
into Nushell as a built-in internal command.

Migrating from an external plugin required several changes across the
codebase and internal APIs. Because of this, the current implementation
may not be completely stable and will likely need further testing and
debugging.

This PR prioritizes integration over stability, and additional fixes are
expected in follow-up work.

Examples:
```
# Copy data to the clipboard
~> "data" | clip copy

# Pass through the copied data
~> "data" | clip copy --show | save out.txt

# Retrieve data from the clipboard
~> clip paste
```

Like the original plugin, it can automatically convert objects and
arrays to and from JSON.
This behavior can be disabled using the `--raw` flag on the `paste`
subcommand.
However, to copy a raw value, you must explicitly cast it to a string.

Note: this feature could be removed to keep the command simpler and
aligned with a single-responsibility design, but it's a nice-to-have
thing.

Closes: #16242

## Tasks after merging
- [ ] Update the documentation:
https://github.com/nushell/nushell.github.io
- [ ] Remove the legacy std/clip script

---------

Co-authored-by: Motalleb Fallahnezhad <fmotalleb@dornica.net>
2026-02-20 07:46:15 -06:00
..

run the scripts

Note


the following table must be read as follows:

  • an x means it works
  • a ? means no data available

.nu scripts must be run as nu .../foo.nu
.sh scripts must be run as ./.../foo.sh
.ps1 scripts must be run as powershell .../foo.ps1

let's say a script is called foo

  • an x in the ./scripts column means foo can be run from ./scripts
  • an x in the root column means foo can be run from the root of nushell
  • an x in the anywhere column means foo can be run from anywhere!
script ./scripts/ root anywhere
build-all-maclin.sh x x x
build-all-windows.cmd ? x ?
build-all.nu x x x
coverage-local.nu x x x
coverage-local.sh x x x
install-all.ps1 ? x ?
install-all.sh x x x
uninstall-all.sh x x x