diff --git a/setup.sh b/setup.sh index e77988b..8dc02d9 100755 --- a/setup.sh +++ b/setup.sh @@ -5,19 +5,19 @@ # It is intended to be run on a new system to quickly set up Rye. # It is recommended to review the script before running it. +export SHELL_RC=$(echo "$HOME/.${SHELL##*/}rc") -export SHELL_ZSH=$(echo "$HOME/.${SHELL##*/}rc") - -if ! command -v rye &> /dev/null; then +if ! command -v rye &>/dev/null; then echo "Rye is not installed. Installing..." curl -sSf https://rye.astral.sh/get | bash - echo "Updating $SHELL_ZSH" - echo "source $HOME/.rye/env" >> $SHELL_ZSH + echo "Updating $SHELL_RC" + echo "source $HOME/.rye/env" >>$SHELL_RC + echo "source $HOME/.cargo/bin" >>$SHELL_RC else echo "Rye is already installed." fi -if ! command -v uv &> /dev/null; then +if ! command -v uv &>/dev/null; then echo "uv is not installed. Installing..." curl -LsSf https://astral.sh/uv/install.sh | sh else