2022-11-28 04:13:06 +01:00
|
|
|
#!/usr/bin/env bash
|
2023-05-20 14:57:51 +02:00
|
|
|
|
2022-11-28 04:13:06 +01:00
|
|
|
set -euo pipefail
|
2022-03-05 12:41:28 +01:00
|
|
|
|
2023-05-20 14:57:51 +02:00
|
|
|
DIR=$(readlink -f $(dirname "${BASH_SOURCE[0]}"))
|
|
|
|
REPO_ROOT=$(dirname $DIR)
|
|
|
|
|
2022-03-05 12:41:28 +01:00
|
|
|
echo "-----------------------------------------------------------------"
|
2024-05-20 19:22:08 +02:00
|
|
|
echo "Installing nushell (nu) and all the plugins"
|
2022-03-05 12:41:28 +01:00
|
|
|
echo "-----------------------------------------------------------------"
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
echo "Install nushell from local..."
|
|
|
|
echo "----------------------------------------------"
|
2024-05-20 19:22:08 +02:00
|
|
|
cargo install --force --path "$REPO_ROOT" --locked
|
2022-03-05 06:10:33 +01:00
|
|
|
|
|
|
|
NU_PLUGINS=(
|
|
|
|
'nu_plugin_inc'
|
|
|
|
'nu_plugin_gstat'
|
|
|
|
'nu_plugin_query'
|
|
|
|
'nu_plugin_example'
|
2022-08-11 16:40:35 +02:00
|
|
|
'nu_plugin_custom_values'
|
2023-02-13 13:42:08 +01:00
|
|
|
'nu_plugin_formats'
|
2024-08-06 22:23:56 +02:00
|
|
|
'nu_plugin_polars'
|
2022-03-05 06:10:33 +01:00
|
|
|
)
|
2022-03-05 12:41:28 +01:00
|
|
|
|
2022-03-05 06:10:33 +01:00
|
|
|
for plugin in "${NU_PLUGINS[@]}"
|
|
|
|
do
|
|
|
|
echo ''
|
|
|
|
echo "----------------------------------------------"
|
|
|
|
echo "Install plugin $plugin from local..."
|
|
|
|
echo "----------------------------------------------"
|
2023-05-20 14:57:51 +02:00
|
|
|
cargo install --force --path "$REPO_ROOT/crates/$plugin"
|
2022-03-05 06:10:33 +01:00
|
|
|
done
|