2022-11-28 03:13:06 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# Usage: Just run `./install-all.sh` in nushell root directory
|
|
|
|
set -euo pipefail
|
2022-03-05 11:41:28 +00:00
|
|
|
|
|
|
|
echo "-----------------------------------------------------------------"
|
2022-11-23 00:58:11 +00:00
|
|
|
echo "Installing nushell (nu) with dataframes and all the plugins"
|
2022-03-05 11:41:28 +00:00
|
|
|
echo "-----------------------------------------------------------------"
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
echo "Install nushell from local..."
|
|
|
|
echo "----------------------------------------------"
|
2023-02-24 17:54:19 +00:00
|
|
|
cargo install --force --path . --features=dataframe
|
2022-03-05 05:10:33 +00:00
|
|
|
|
|
|
|
NU_PLUGINS=(
|
|
|
|
'nu_plugin_inc'
|
|
|
|
'nu_plugin_gstat'
|
|
|
|
'nu_plugin_query'
|
|
|
|
'nu_plugin_example'
|
2022-08-11 14:40:35 +00:00
|
|
|
'nu_plugin_custom_values'
|
2023-02-13 12:42:08 +00:00
|
|
|
'nu_plugin_formats'
|
2022-03-05 05:10:33 +00:00
|
|
|
)
|
2022-03-05 11:41:28 +00:00
|
|
|
|
2022-03-05 05:10:33 +00:00
|
|
|
for plugin in "${NU_PLUGINS[@]}"
|
|
|
|
do
|
|
|
|
echo ''
|
|
|
|
echo "----------------------------------------------"
|
|
|
|
echo "Install plugin $plugin from local..."
|
|
|
|
echo "----------------------------------------------"
|
2023-02-24 17:54:19 +00:00
|
|
|
cd crates/"$plugin" && cargo install --force --path . && cd ../../
|
2022-03-05 05:10:33 +00:00
|
|
|
done
|