This repository has been archived on 2025-01-31. You can view files and clone it, but cannot push or open issues or pull requests.

11 lines
131 B
Bash
Raw Normal View History

#!/bin/zsh
source_env() {
if [[ -f .env ]]; then
source .env
fi
}
autoload -U add-zsh-hook
add-zsh-hook chpwd source_env