Update bashrc

Make direnv only run if it's installed.
This commit is contained in:
2025-03-11 04:44:13 +00:00
parent 3d83d0251c
commit a5cd54482f

5
bashrc
View File

@@ -19,4 +19,7 @@ export RUBY_YJIT_ENABLE=1
HISTSIZE=50000 HISTSIZE=50000
HISTFILESIZE=100000 HISTFILESIZE=100000
shopt -s histappend shopt -s histappend
eval "$(direnv hook bash)"
if command -v git &> /dev/null; then
eval "$(direnv hook bash)"
fi