-
-
Save LnL7/4c7ff50924af322005e4a2ccae425bfe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:u() { | |
local exports | |
exports=$(direnv apply_dump <(nix-shell -E "with import <nixpkgs> {}; mkShell { buildInputs = [ $* ]; }" --run 'direnv dump')) | |
eval "$exports" | |
name+="''${name:+ }$*" | |
typeset -U PATH | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment