Skip to content

Commit

Permalink
fix(volta): Don't add direnv stdlib to shell
Browse files Browse the repository at this point in the history
  • Loading branch information
nicknovitski committed Dec 14, 2024
1 parent eac7f74 commit c9f4cc6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shell-modules/volta.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@
# from PATH.
shellHook = ''
if [ -n "''${VOLTA_HOME:-}" ]; then
eval "$(${pkgs.direnv}/bin/direnv stdlib)"
PATH_rm "$VOLTA_HOME"
export PATH=$(${pkgs.gnused}/bin/sed --regexp-extended --expression="s;$VOLTA_HOME/bin:\?;;" --expression="s;:\?$VOLTA_HOME/bin;;" <<< "$PATH")
unset VOLTA_HOME
fi
VOLTA_HOME="${cfg.home}"
Expand Down

0 comments on commit c9f4cc6

Please sign in to comment.