@ 261102.1

260524.1 · 1b6e17ca39435ece437fe5618fa42213beb26903

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).

reading declarations

Changes to uninstall. All files

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")