From a5cd54482fd7b5f44abc14f7dbc6b78f6dca65ca Mon Sep 17 00:00:00 2001 From: Dan Milne Date: Tue, 11 Mar 2025 04:44:13 +0000 Subject: [PATCH] Update bashrc Make direnv only run if it's installed. --- bashrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bashrc b/bashrc index a616fb8..f0e50ed 100644 --- a/bashrc +++ b/bashrc @@ -19,4 +19,7 @@ export RUBY_YJIT_ENABLE=1 HISTSIZE=50000 HISTFILESIZE=100000 shopt -s histappend -eval "$(direnv hook bash)" + +if command -v git &> /dev/null; then + eval "$(direnv hook bash)" +fi \ No newline at end of file