I set up an alias for changing directory into a project and activating the environment of the same name. For robustness, I wrote a full function in my `~/.bashrc` file.
```bash
workon() {
local dir=~/_dev/$1
if [ -d "$dir" ]; then
cd "$dir"
if mamba info --envs | grep -q "^$1\s"; then
mamba activate "$1"
else
echo "Conda environment '$1' does not exist."
fi
else
echo "Directory '$dir' does not exist."
fi
}
```
Now when I use
```bash
workon <my-app>
```
Bash `cd`s into my project repo and activates the environment.