mirror of
https://github.com/Tarrasch/zsh-autoenv.git
synced 2025-02-22 09:34:44 +02:00
- Support for leave event, via DOTENV_FILE_LEAVE and _dotenv_event (can use DOTENV_FILE_LEAVE=$DOTENV_FILE_ENTER). - Support for searching upwards for $DOTENV_FILE_ENTER (#3). - Source .env only once per session, but re-source when leave events are enabled (#1). - Trigger the machinery when the script gets sourced, for the current dir (#2).
Autoenv for zsh
This is is a zsh optimized version of autoenv
Why a zsh version
- Auto-completion will work rather than vomit
- No stupid error messages
- It's elegant to use the built in
chpwd_functions
Installation
Using antigen
antigen-bundle Tarrasch/zsh-autoenv
Credits
The code was mostly copied from Joshua Clayton
Description
Languages
Shell
48.1%
Perl
46.7%
Raku
3.5%
Makefile
1.7%