Files
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

32 lines
989 B
PowerShell

# Usage: Just run `powershell install-all.ps1` in nushell root directory
Write-Output "-----------------------------------------------------------------"
Write-Output "Installing nushell (nu) and all the plugins"
Write-Output "-----------------------------------------------------------------"
Write-Output ""
Write-Output "Install nushell from local..."
Write-Output "----------------------------------------------"
cargo install --force --path . --locked
$NU_PLUGINS = @(
'nu_plugin_example',
'nu_plugin_gstat',
'nu_plugin_inc',
'nu_plugin_query',
'nu_plugin_custom_values',
'nu_plugin_formats',
'nu_plugin_polars'
)
foreach ( $plugin in $NU_PLUGINS) {
Write-Output ''
Write-Output "----------------------------------------------"
Write-Output "Install plugin $plugin from local..."
Write-Output "----------------------------------------------"
Set-Location crates/$plugin
cargo install --force --path .
Set-Location ../../
}