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