Skip to content

Commit

Permalink
Revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
ocaisa authored Sep 30, 2024
1 parent b778dd9 commit 57ab83f
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .install_direnv.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
# This can be clunky and invasive, that's why it is hidden

if command -v direnv &> /dev/null
then
echo "direnv command exists, no need for an install"
else
echo "direnv does not exist, attempting an install"

# Make sure there's a location already in PATH that we can install to
mkdir -p $HOME/.local/bin &&
# Run the direnv installer (!!not secure!! we should ship direnv with EESSI)
curl -sfL https://direnv.net/install.sh | bash &&
fi

# Make sure there's a location already in PATH that we can install to
mkdir -p $HOME/.local/bin &&
# Run the direnv installer (!!not secure!! we should ship direnv with EESSI)
curl -sfL https://direnv.net/install.sh | bash &&
# Add the direnv hook to our shell
echo 'eval "$(direnv hook bash)"' >> $HOME/.bashrc &&
eval "$(direnv hook bash)"
Expand Down

0 comments on commit 57ab83f

Please sign in to comment.