My old man loved to say "Assume make an ass out of u and me".
I missunderstood the BBEdit manual and Bare Bones tech support.
I thought the 'Run' command used "the" default shell on your system, but it
in fact uses "your" default shell. I was looking in the wrong place for the
problem. Though I have ZSH configured I use Fish.
The asdf website provides this code to add add to your fish config file.
------------------------------------------------------
*# ASDF configuration codeif test -z $ASDF_DATA_DIR set _asdf_shims
"$HOME/.asdf/shims"else set _asdf_shims "$ASDF_DATA_DIR/shims"end# Do
not use fish_add_path (added in Fish 3.2) because it# potentially changes
the order of items in PATHif not contains $_asdf_shims $PATH set -gx
--prepend PATH $_asdf_shimsendset --erase _asdf_shims*
------------------------------------------------------
What I discovered is that the second conditional fails as $_asdf_shims (the
asdf shims directory) is present. It's just at the end rather then the
beginning when running through BBEdit. This if statement stops you from
getting multiple entries in your path.
I changed my config to look like this.
------------------------------------------------------
# ASDF configuration code
if test -z $ASDF_DATA_DIR
set _asdf_shims "$HOME/.asdf/shims"
else
set _asdf_shims "$ASDF_DATA_DIR/shims"
end
# Do not use fish_add_path (added in Fish 3.2) because it
# potentially changes the order of items in PATH
if not contains $_asdf_shims $PATH
set -gx --prepend PATH $_asdf_shims
end
if string match -q -r "BBEDIT_PID" (env)
fish_add_path -m $_asdf_shims
end
set --erase _asdf_shims
------------------------------------------------------
The expression "fish_add_path -m $_asdf_shims" will reorder $PATH so that
$_asdf_shims loads first.
👍
If anyone thinks this could cause me any grief, please let me know.
--
This is the BBEdit Talk public discussion group. If you have a feature request
or believe that the application isn't working correctly, please email
"[email protected]" rather than posting here. Follow @bbedit on Mastodon:
<https://mastodon.social/@bbedit>
---
You received this message because you are subscribed to the Google Groups
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/bbedit/9fed39ab-5de9-4754-853c-6b54e5625bden%40googlegroups.com.