You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proto treats the return value of get_profile_paths as least-preferred-comes-first, but its assumption is basically wrong.
Starbase needs to unify and clarify the order of get_profile_paths.
The text was updated successfully, but these errors were encountered:
tats-u
changed the title
The order of Shell::get_profile_paths is not consistent among shells
The order of Shell::get_profile_paths is not consistent among shells; unify and clarify it
Nov 19, 2024
In Bash, the most preferred profile (not rc) comes first:
starbase/crates/shell/src/shells/bash.rs
Lines 17 to 30 in 9f20f1b
starbase/crates/shell/src/shells/bash.rs
Lines 87 to 106 in 9f20f1b
In elvish, the most preferred one returned by
get_config_path
comes first while the "legacy" one comes last:starbase/crates/shell/src/shells/elvish.rs
Lines 88 to 102 in 9f20f1b
In fish, the return value of
get_config_path
comes first inget_profile_paths
like the above 2 shells:starbase/crates/shell/src/shells/fish.rs
Lines 64 to 79 in 9f20f1b
However, in nushell, the order depends on the hash algorithm of
HashSet
:starbase/crates/shell/src/shells/nu.rs
Lines 132 to 150 in 9f20f1b
Proto treats the return value of
get_profile_paths
as least-preferred-comes-first, but its assumption is basically wrong.Starbase needs to unify and clarify the order of
get_profile_paths
.The text was updated successfully, but these errors were encountered: