Skip to content

Commit

Permalink
fix: add cargo to rc file
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymon Szyszkowski committed Aug 13, 2024
1 parent 8c98b46 commit 3d8e802
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d8e802

Please sign in to comment.