mathiasbynens / dotfiles

:wrench: .files, including ~/.macos — sensible hacker defaults for macOS

Home Page:https://mths.be/dotfiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Install command fails for zsh

ahemed-haneen opened this issue · 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.