From 1b6e17ca39435ece437fe5618fa42213beb26903 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 24 May 2026 00:13:24 +0900 Subject: [PATCH] nushell: [uninstall] Query nu for autoload directory Mirror the install fix. Fall back to the XDG path when `nu` is no longer on PATH (e.g. nushell already uninstalled). --- uninstall | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/uninstall b/uninstall index d4c6b4f2..8df8ee39 100755 --- a/uninstall +++ b/uninstall @@ -114,7 +114,11 @@ if [ -d "${fish_dir}/functions" ]; then fi fi -nushell_autoload_dir=${XDG_CONFIG_HOME:-$HOME/.config}/nushell/autoload +if command -v nu > /dev/null; then + nushell_autoload_dir=$(nu -c '$nu.user-autoload-dirs | first') +else + nushell_autoload_dir=${XDG_CONFIG_HOME:-$HOME/.config}/nushell/autoload +fi remove "${nushell_autoload_dir}/_fzf_integration.nu" config_dir=$(dirname "$prefix_expand")