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. 6
      .ci/install.sh

6
.ci/install.sh

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

Loading…
Cancel
Save