seokmin_fenv

Crates.ioseokmin_fenv
lib.rsseokmin_fenv
version0.2.1
created_at2025-04-29 07:53:43.129781+00
updated_at2025-04-29 13:07:46.386057+00
descriptionA direnv-like tool for Fish shell
homepage
repositoryhttps://github.com/SeokminHong/fenv
max_upload_size
id1653262
size14,799
Seokmin Hong (SeokminHong)

documentation

README

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

Commit count: 28

cargo fmt