2 releases

Uses new Rust 2024

new 0.2.1 Apr 29, 2025
0.2.0 Apr 29, 2025

#1520 in Command line utilities

MIT license

6KB

fenv

Installation

Homebrew

brew tap seokminhong/brew
brew install fenv
# Or
brew install seokminhong/brew/fenv

Cargo install

cargo install seokmin_fenv

Usage

  1. Add the script to your config.fish file

    # ~/.config/fish/config.fish
    fenv init | source
    
  2. Write .envrc.fish file to your directory and declare fenv_load and fenv_unload functions

    # ~/foo/bar/.envrc.fish
    function fenv_load
      set -gx my_var "Hello!"
    end
    
    function fenv_unload
      set -e my_var
    end
    

Demo

https://github.com/user-attachments/assets/2f0429b7-99b7-4566-81cd-20a582abefe5

Dependencies

~1–1.6MB
~31K SLoC