winget install --id=ProjectEnv.ProjectEnvShell -e
The Project-Env Shell integration application allows to use tools setup by the Project-Env CLI in a shell environment.
Project-Env Shell is a utility designed to integrate tools configured by Project-Env CLI into shell environments. It simplifies access to project-specific tools and configurations directly within your development workflow.
Key Features:
Audience & Benefit:
Ideal for developers and teams working on multiple projects, Project-Env Shell streamlines the process of managing project-specific tools and environments. It provides a consistent and efficient way to set up your shell environment across different platforms, enhancing productivity by minimizing manual setup efforts. The application can be installed via winget, ensuring smooth integration into your development workflow.
The Project-Env Shell integration application allows to use tools setup by the Project-Env CLI in a shell environment. See Project-Env for more details.
brew install --cask project-env/tap/project-env-shell
winget install ProjectEnv.ProjectEnvShell
To use Project-Env managed tools in your unix shell, create the following script:
#!/bin/sh
if [[ ! -f "project-env.toml" ]]; then
sh
else
project-env-shell --config-file="project-env.toml" --output-template=sh --output-file=.project-env
source .project-env
sh
fi
To use the tools, you now only need to call the script to setup the shell.
For example, if you want to start your IntelliJ Terminal with Project-Env tools setup, configure the following command in the Terminal settings:
/bin/sh --login -c
To use Project-Env managed tools in your Cygwin shell, create the following script:
@echo off
if not exist project-env.toml (
bash.exe
) else (
project-env-shell.exe --config-file=project-env.toml --output-template=cygwin --output-file=.project-env
dos2unix .project-env
bash.exe --init-file .project-env
)
To use the tools, you now only need to call the script to setup the shell.