```bash
sudo apt update
sudo apt install direnv
```
#### 2. **Hook `direnv` into Bash**
Add this to your `~/.bashrc` (at the bottom):
```bash
eval "$(direnv hook bash)"
```
Then reload your shell:
```bash
source ~/.bashrc
```
#### 3. **Enable auto-activation in your project folder**
```bash
cd /path/to/your/project
echo 'layout python .venv' > .envrc
direnv allow
```