Skip to content

Commit

Permalink
#693: Setup file not working on Mac (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
blizzarac authored Oct 28, 2024
1 parent b15bfdf commit d0b5e3b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cli/src/main/package/setup
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ if ! grep -q "alias ide=" ~/.bashrc; then
echo -e "ide" >> ~/.bashrc
fi

if [ "${OSTYPE}" != "cygwin" ] && [ "${OSTYPE}" != "msys" ]; then
if ! grep -q "IDE_ROOT" ~/.bashrc
then
echo -e 'export IDE_ROOT="$(pwd)"' >> ~/.bashrc
fi

if ! grep -q "IDE_ROOT" ~/.zshrc
then
echo -e 'export IDE_ROOT="$(pwd)"' >> ~/.zshrc
fi
fi


if [ -f ~/.zshrc ]; then
if ! grep -q "compinit" ~/.zshrc
then
Expand Down

0 comments on commit d0b5e3b

Please sign in to comment.