Skip to content

Commit

Permalink
fix(foundryup): use fish_add_path in fish shell (#7258)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vid201 authored Feb 28, 2024
1 parent b279e55 commit 19a294b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion foundryup/install
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ esac
# Only add foundryup if it isn't already in PATH.
if [[ ":$PATH:" != *":${FOUNDRY_BIN_DIR}:"* ]]; then
# Add the foundryup directory to the path and ensure the old PATH variables remain.
echo >> "$PROFILE" && echo "export PATH=\"\$PATH:$FOUNDRY_BIN_DIR\"" >> "$PROFILE"
# If the shell is fish, echo fish_add_path instead of export.
if [[ "$PREF_SHELL" == "fish" ]]; then
echo >> "$PROFILE" && echo "fish_add_path -a $FOUNDRY_BIN_DIR" >> "$PROFILE"
else
echo >> "$PROFILE" && echo "export PATH=\"\$PATH:$FOUNDRY_BIN_DIR\"" >> "$PROFILE"
fi
fi

# Warn MacOS users that they may need to manually install libusb via Homebrew:
Expand Down

0 comments on commit 19a294b

Please sign in to comment.