stable-diffusion-webui-mps icon indicating copy to clipboard operation
stable-diffusion-webui-mps copied to clipboard

Add Setup Shell Script for zsh

Open AgI-Dev-Official opened this issue 2 years ago • 2 comments

The original setup script is for bash and causes some error when run the script via source setup_mac.sh in zsh. The –p option doesn’t mean the same thing to bash’s read command and zsh's read command.

AgI-Dev-Official avatar Oct 10 '22 14:10 AgI-Dev-Official

Is there any specific reason why you'd want to run it using source instead of just as an executable in a new shell with ./ ?

dylancl avatar Oct 12 '22 20:10 dylancl

Is there any specific reason why you'd want to run it using source instead of just as an executable in a new shell with ./ ?

@dylancl This is because that conda activate env do not work in shell script even when call conda init first. When run a shell script, it normally does not source .bashrc/.zshrc. I am not sure why ./filename command do not work well in my shell even though it would be same as sh filename, maybe there are some problems in environment variables.

AgI-Dev-Official avatar Oct 14 '22 05:10 AgI-Dev-Official