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
When eval "$(rtx activate -s zsh)" is run on shell loading, the directory of the rtx binary is added to the front of PATH.
Although the directory is already on the path. Therefore overwriting my custom PATH order.
Fix:
rtx checks, if the bin path is already in PATH and only updates the PATH when needed.
Reproduce:
.zshrc
echo$PATHeval"$(rtx activate -s zsh)"echo$PATH
start new terminal shell:
/Users/user/bin:/Users/user/.local/bin:/Users/user/.cargo/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
# /opt/homebrew/bin: added although already on the PATH, overriding the custom order
/opt/homebrew/bin:/Users/user/bin:/Users/user/.local/bin:/Users/user/.cargo/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
The text was updated successfully, but these errors were encountered:
When
eval "$(rtx activate -s zsh)"
is run on shell loading, the directory of the rtx binary is added to the front of PATH.Although the directory is already on the path. Therefore overwriting my custom PATH order.
Fix:
rtx checks, if the bin path is already in PATH and only updates the PATH when needed.
Reproduce:
.zshrc
start new terminal shell:
/Users/user/bin:/Users/user/.local/bin:/Users/user/.cargo/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin # /opt/homebrew/bin: added although already on the PATH, overriding the custom order /opt/homebrew/bin:/Users/user/bin:/Users/user/.local/bin:/Users/user/.cargo/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
The text was updated successfully, but these errors were encountered: