stable-diffusion-webui-mps
stable-diffusion-webui-mps copied to clipboard
Add Setup Shell Script for zsh
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.
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 ./
?
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.