From effe01a7cc5de546dd05024968a828e723f6d311 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 5 Feb 2019 06:12:12 -0500 Subject: [PATCH] Add existence checks; export gpg vars --- bash/.bashrc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/bash/.bashrc b/bash/.bashrc index 95df7f7..6141cb0 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -8,4 +8,15 @@ alias ls='ls --color=auto' PS1='[\u@\h \W]\$ ' -source /usr/share/nvm/init-nvm.sh +if [ -f /usr/share/nvm/init-nvm.sh ]; +then + source /usr/share/nvm/init-nvm.sh +fi + +GPG_TTY=$(tty) +export GPG_TTY + +if [ -x "$(command -v direnv)" ]; +then + eval "$(direnv hook bash)" +fi