randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.37k stars 83 forks source link

Build System Environment Variable #347

Closed karimlevallois closed 2 years ago

karimlevallois commented 2 years ago

I'm running Terminus through a build system, but need to run eval "$(pdm --pep582)" before I can run any code to set the environment variable. I've tried multiple "cmd" and "shell_cmd" options but cannot get it to work with my macOS Zsh setup. The auto setting of the variable is in my .zshrc and works when launching Terminus normally or using my external terminal iTerm2, just not the build system. Any ideas on how to get this to work?

karimlevallois commented 2 years ago

Fixed it by adding an if statement in my .zprofile.