2 releases

Uses new Rust 2024

0.2.1 Apr 29, 2025
0.2.0 Apr 29, 2025

#957 in Command line utilities

Download history 112/week @ 2025-04-23 124/week @ 2025-04-30 19/week @ 2025-05-07

255 downloads per month

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
~30K SLoC