With v46 Hot, shell-dep hot-swap --bin rg atomically replaces the binary pointer in your environment’s PATH cache. The change is visible to the very next line in your script.
[hot] max_sig_age_days = 60