Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr authored Aug 17, 2023
1 parent 31ffeb0 commit ae3ba3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ else
fi

echo "Updating /etc/bash.bashrc and /etc/zsh/zshrc..."
if [[ "$(cat /etc/bash.bashrc)" != *"$1"* ]]; then
if [[ -f cat /etc/bash.bashrc ]]; then
echo -e 'eval "$(direnv hook bash)"' >> /etc/bash.bashrc
fi
if [ -f "/etc/zsh/zshrc" ] && [[ "$(cat /etc/zsh/zshrc)" != *"$1"* ]]; then
if [ -f "/etc/zsh/zshrc" ]; then
echo -e 'eval "$(direnv hook zsh)"' >> /etc/zsh/zshrc
fi

0 comments on commit ae3ba3c

Please sign in to comment.