From eda02b6d9ae462ec4747bbedb3b26bc63b66c692 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 17 Jan 2013 22:34:20 -0200 Subject: Run agents just if they exist --- modules/profile/profile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'modules/profile') diff --git a/modules/profile/profile b/modules/profile/profile index 0fa8e2b..f442602 100644 --- a/modules/profile/profile +++ b/modules/profile/profile @@ -25,10 +25,14 @@ export EDITOR="vim -X" eval "`dircolors -b ~/.dircolorsrc`" # SSH Agent -source $HOME/apps/scripts/ssh-agent-eval +if [ -e "$HOME/apps/scripts/ssh-agent-eval" ]; then + source $HOME/apps/scripts/ssh-agent-eval +fi # GPG Agent -source $HOME/apps/scripts/gpg-agent-eval +if [ -e "$HOME/apps/scripts/gpg-agent-eval" ]; then + source $HOME/apps/scripts/gpg-agent-eval +fi # Remove lost found folder if empty if [ -d "$HOME/lost+found" ]; then -- cgit v1.2.3