Skip to content

SpaceShaman/autoenv.fish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

autoenv.fish

A Fish Shell plugin that automatically loads environment variables from a .env file in the current project.

Features

  • 🔁 Automatically loads environment variables from a .env file in the current project.
  • 🐟 Lightweight and runs on every directory change
  • 🔻 Automatically erases environment variables when leaving the project directory.
  • 🐙 Supports Git repositories (uses repo root as project dir)
  • 🔄 Supports environment variable expansion using ${VAR} and $VAR syntax

Installation

With fisher

fisher install SpaceShaman/autoenv.fish

With reef

reef install SpaceShaman/autoenv.fish

Manual

Copy the conf.d/autoenv.fish file to your ~/.config/fish/conf.d directory.

About

A Fish Shell plugin that automatically loads environment variables from a .env file in the current project.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages