[shell/direnv] add sourcing

This commit is contained in:
Felix Buehler 2021-01-06 18:05:27 +01:00
parent 8f2a0c51e1
commit 138e8ed62b
2 changed files with 7 additions and 1 deletions

View file

@ -36,9 +36,10 @@
~/.profile.d/20-cd.sh: shell/cd.sh ~/.profile.d/20-cd.sh: shell/cd.sh
~/.profile.d/40-extract.sh: shell/extract.sh ~/.profile.d/40-extract.sh: shell/extract.sh
~/.profile.d/40-mysqlpw.sh: shell/mysqlpw.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/80-command-not-found.sh: shell/command-not-found.sh
~/.profile.d/81-fzf.sh: shell/fzf.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 ~/.tmux.conf: tmux/tmux.conf
~/.toprc: top/toprc ~/.toprc: top/toprc
~/.config/htop/htoprc: top/htoprc ~/.config/htop/htoprc: top/htoprc

5
shell/direnv.sh Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
if command -v direnv >/dev/null; then
eval "$(direnv hook bash)"
fi