2022-11-28 04:13:06 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -euo pipefail
|
2022-03-05 06:10:33 +01:00
|
|
|
|
|
|
|
echo ''
|
|
|
|
echo "----------------------------------------------"
|
|
|
|
echo "Uninstall nu and all plugins from cargo/bin..."
|
|
|
|
echo "----------------------------------------------"
|
|
|
|
|
|
|
|
NU_PLUGINS=(
|
|
|
|
'nu_plugin_inc'
|
|
|
|
'nu_plugin_gstat'
|
|
|
|
'nu_plugin_query'
|
|
|
|
'nu_plugin_example'
|
2023-02-13 13:42:08 +01:00
|
|
|
'nu_plugin_formats'
|
2023-08-21 19:42:42 +02:00
|
|
|
'nu_plugin_custom_values'
|
2022-03-05 06:10:33 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
cargo uninstall nu
|
|
|
|
for plugin in "${NU_PLUGINS[@]}"
|
|
|
|
do
|
2022-11-28 04:13:06 +01:00
|
|
|
cargo uninstall "$plugin"
|
2022-03-05 06:10:33 +01:00
|
|
|
done
|