dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

The Install command fails for zsh

Open ahemed-haneen opened this issue 4 years ago • 2 comments

Is there a installation script for zsh as from catalina onwards zsh is being used instead of bash...right?

ahemed-haneen avatar Dec 30 '19 09:12 ahemed-haneen

I replaced source ~/.bash_profile; with:

if [ -n "$ZSH_VERSION" ]; then
   source ~/.zshrc;
elif [ -n "$BASH_VERSION" ]; then
   source ~/.bash_profile;
else
   echo 'unknown shell'
fi

This allows me to bootstrap from both shells.

dnnsmnstrr avatar Jan 09 '20 20:01 dnnsmnstrr