mirror of
https://github.com/junegunn/fzf
synced 2026-06-09 10:03:17 +00:00
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).
This commit is contained in:
@@ -114,7 +114,11 @@ if [ -d "${fish_dir}/functions" ]; then
|
|||||||
fi
|
fi
|
||||||
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"
|
remove "${nushell_autoload_dir}/_fzf_integration.nu"
|
||||||
|
|
||||||
config_dir=$(dirname "$prefix_expand")
|
config_dir=$(dirname "$prefix_expand")
|
||||||
|
|||||||
Reference in New Issue
Block a user