From 9603004b6c51aa5148e147076a1321eb35642957 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 23 Jan 2023 17:32:14 +0200 Subject: bashrc: use direnv if available Sponsored-by: author --- bashrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bashrc') 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 -- cgit v1.2.1