how to start an interactive shell with special setup

I want to start an interactive zsh (on cygwin) with project specific set-up:

  1. source /etc/profile
  2. source ~/.profile
  3. source $PROJECT_HOME/Setup.zsh
  4. become interactive

I got as far a step 3 but then the shell just terminates.

I have done this kind of thing before but I forgot how I did it. I tried to google for it but could not find anything. Probalby a case of having the wrong search terms.

Adding $PROJECT_HOME/Setup.zsh to ~/.profile is of course no solution as the idea is to have multiple start-up icons on the windows desktop to start shells for one of many project.


Make your shortcuts look like:

env PROJECT_HOME=~/projects/this zsh

env PROJECT_HOME=~/projects/that zsh

Sourcing $PROJECT_HOME/Setup.zsh will work fine now.