Browse Source

Adding check for OSX during writing for bash shell (#58)

OS X users experience issues due to .bashrc not being
sourced on start up.

Fixes #40
remotes/origin/add-simple-redirecting-site
Max Knee 6 years ago committed by Gal Schlezinger
parent
commit
e9e66c105d
  1. 4
      .ci/install.sh

4
.ci/install.sh

@ -116,7 +116,11 @@ setup_shell() {
echo 'eval (fnm env --multi --fish)' >> $CONF_FILE echo 'eval (fnm env --multi --fish)' >> $CONF_FILE
elif [ "$CURRENT_SHELL" == "bash" ]; then elif [ "$CURRENT_SHELL" == "bash" ]; then
if [ "$OS" == "Darwin" ]; then
CONF_FILE=$HOME/.profile
else
CONF_FILE=$HOME/.bashrc CONF_FILE=$HOME/.bashrc
fi
echo "Installing for Bash. Appending the following to $CONF_FILE:" echo "Installing for Bash. Appending the following to $CONF_FILE:"
echo "" echo ""
echo ' # fnm' echo ' # fnm'

Loading…
Cancel
Save