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
fn_export() {(
b_path="${1}"
b_new_path="${2}"case":${b_path}:"in*:"${b_new_path}":*)
;;
*)
# Prepending path in case a system-installed path needs to be overridden
b_path="${b_new_path}:${b_path}"
;;
esacecho"${b_path}"
);}
What I like:
idempotent
What I don't like:
non-standard
non-portable (bash and fish would need different implementations)
The text was updated successfully, but these errors were encountered:
I was just noticing an interesting, idempotent way to update the
PATH
while trying to track down an issue with mycargo
config:What I like:
What I don't like:
The text was updated successfully, but these errors were encountered: