Skip to content

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

License

Notifications You must be signed in to change notification settings

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 2

  •  
  •  

Languages