create-esp32-app icon indicating copy to clipboard operation
create-esp32-app copied to clipboard

macOS has moved to zsh

Open TJ-C opened this issue 4 years ago • 0 comments

In esp-idf-template/.vscode/settings.json bash is used to configure settings, however Catalina has moved to zsh and so when setting the shell to zsh the error no such option init-file appears:

"terminal.integrated.shell.osx": "/bin/zsh",
  "terminal.integrated.shellArgs.osx": ["--init-file", "/Vol...],

How does one fix this for zsh?

Update:

I ended up commenting out the above lines and adding the following to my .zshrc file:

esp() {
    conda activate esp32
    . /Volumes/Atom/esp32/esp-idf/export.sh
}

As I use conda to control my python environments, this solution works well.

TJ-C avatar Apr 23 '20 14:04 TJ-C