summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-01-23 17:32:14 +0200
committerLars Wirzenius <liw@liw.fi>2023-01-23 17:32:14 +0200
commit9603004b6c51aa5148e147076a1321eb35642957 (patch)
tree2925924046bbc94a8e98746752947fe9c577571e /bashrc
parent1abd025425b4d6e705c3fe93d45d839c26b9caf4 (diff)
downloadliw-dot-files-9603004b6c51aa5148e147076a1321eb35642957.tar.gz
bashrc: use direnv if available
Sponsored-by: author
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index 1e8f12a..1801311 100644
--- a/bashrc
+++ b/bashrc
@@ -186,6 +186,10 @@ if [ -n "$PS1" ]; then
bind -r ''
fi
+if command -v direnv > /dev/null; then
+ eval "$(direnv hook bash)"
+fi
+
if command -v zoxide > /dev/null; then
eval "$(zoxide init bash)"
fi