From 138e8ed62b5898b1f27fb7238ed55c846f9424f0 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Wed, 6 Jan 2021 18:05:27 +0100 Subject: [PATCH] [shell/direnv] add sourcing --- install.conf.yaml | 3 ++- shell/direnv.sh | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 shell/direnv.sh diff --git a/install.conf.yaml b/install.conf.yaml index 9210225..0006fbf 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -36,9 +36,10 @@ ~/.profile.d/20-cd.sh: shell/cd.sh ~/.profile.d/40-extract.sh: shell/extract.sh ~/.profile.d/40-mysqlpw.sh: shell/mysqlpw.sh - ~/.profile.d/90-keychain.sh: shell/keychain.sh ~/.profile.d/80-command-not-found.sh: shell/command-not-found.sh ~/.profile.d/81-fzf.sh: shell/fzf.sh + ~/.profile.d/82-direnv.sh: shell/direnv.sh + ~/.profile.d/90-keychain.sh: shell/keychain.sh ~/.tmux.conf: tmux/tmux.conf ~/.toprc: top/toprc ~/.config/htop/htoprc: top/htoprc diff --git a/shell/direnv.sh b/shell/direnv.sh new file mode 100755 index 0000000..a9a7499 --- /dev/null +++ b/shell/direnv.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +if command -v direnv >/dev/null; then + eval "$(direnv hook bash)" +fi