mathiasbynens/dotfiles

The Install command fails for zsh

ahemed-haneen opened this issue · 2 comments

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

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.

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.

Thanks for the suggestion.
Though your fork looks scary (very elaborate) , I followed your suggestions and now have a customised version of the same for my use cases.