From 3219cba0cf2731f29d4c9f2e52de94dae0eb4ea5 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Wed, 19 Aug 2020 13:35:26 +0200 Subject: [PATCH] Enable direnv bash hook. --- .bashrc.dotfiles | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.bashrc.dotfiles b/.bashrc.dotfiles index 1c9f486..44d4d01 100644 --- a/.bashrc.dotfiles +++ b/.bashrc.dotfiles @@ -21,6 +21,12 @@ export PS1="[\[\e[32m\e[1m\]\u@\h\[\e[0m\]:\[\e[34m\e[1m\]\w\[\e[0m\]]\$ " export JULIA_PKG_DEVDIR=$HOME/dev export JULIA_PROJECT=@. +# Enable direnv +if command -v direnv &> /dev/null ; then + eval "$(direnv hook bash)" + # alias tmux='direnv exec / tmux' +fi + # Start tmux by default if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then if tmux ls | grep "default: " > /dev/null; then