The Install command fails for zsh
ahemed-haneen opened this issue · 2 comments
ahemed-haneen commented
Is there a installation script for zsh as from catalina onwards zsh is being used instead of bash...right?
dnnsmnstrr commented
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
ahemed-haneen commented
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
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.