2022-11-28 03:13:06 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -euo pipefail
|
2022-03-05 05:10:33 +00: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 12:42:08 +00:00
|
|
|
'nu_plugin_formats'
|
2023-08-21 17:42:42 +00:00
|
|
|
'nu_plugin_custom_values'
|
2022-03-05 05:10:33 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
cargo uninstall nu
|
|
|
|
for plugin in "${NU_PLUGINS[@]}"
|
|
|
|
do
|
2022-11-28 03:13:06 +00:00
|
|
|
cargo uninstall "$plugin"
|
2022-03-05 05:10:33 +00:00
|
|
|
done
|