2022-03-05 11:41:28 +00:00
|
|
|
|
|
|
|
# Usage: Just run `powershell install-all.ps1` in nushell root directory
|
|
|
|
|
|
|
|
Write-Output "-----------------------------------------------------------------"
|
2024-05-20 17:22:08 +00:00
|
|
|
Write-Output "Installing nushell (nu) and all the plugins"
|
2022-03-05 11:41:28 +00:00
|
|
|
Write-Output "-----------------------------------------------------------------"
|
|
|
|
Write-Output ""
|
|
|
|
|
|
|
|
Write-Output "Install nushell from local..."
|
|
|
|
Write-Output "----------------------------------------------"
|
2024-05-20 17:22:08 +00:00
|
|
|
cargo install --force --path . --locked
|
2022-03-05 11:41:28 +00:00
|
|
|
|
2022-08-11 14:40:35 +00:00
|
|
|
$NU_PLUGINS = @(
|
2022-03-05 11:41:28 +00:00
|
|
|
'nu_plugin_example',
|
|
|
|
'nu_plugin_gstat',
|
|
|
|
'nu_plugin_inc',
|
2022-08-11 14:40:35 +00:00
|
|
|
'nu_plugin_query',
|
2023-02-13 12:42:08 +00:00
|
|
|
'nu_plugin_custom_values',
|
|
|
|
'nu_plugin_formats'
|
2024-08-06 20:23:56 +00:00
|
|
|
'nu_plugin_polars'
|
2022-03-05 11:41:28 +00:00
|
|
|
)
|
|
|
|
|
2022-08-11 14:40:35 +00:00
|
|
|
foreach ( $plugin in $NU_PLUGINS) {
|
2022-03-05 11:41:28 +00:00
|
|
|
Write-Output ''
|
|
|
|
Write-Output "----------------------------------------------"
|
|
|
|
Write-Output "Install plugin $plugin from local..."
|
|
|
|
Write-Output "----------------------------------------------"
|
|
|
|
Set-Location crates/$plugin
|
2023-02-24 17:54:19 +00:00
|
|
|
cargo install --force --path .
|
2022-03-05 11:41:28 +00:00
|
|
|
Set-Location ../../
|
|
|
|
}
|
|
|
|
|