aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-17 22:34:20 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-17 22:34:20 -0200
commiteda02b6d9ae462ec4747bbedb3b26bc63b66c692 (patch)
treeaf0192ad3cc1164fd1462973ef6a9e2a37f128a3 /modules
parenteb6378e334cc402e6e1e00c186e71ad869fae9d3 (diff)
downloaddotfiles-eda02b6d9ae462ec4747bbedb3b26bc63b66c692.tar.gz
dotfiles-eda02b6d9ae462ec4747bbedb3b26bc63b66c692.tar.bz2
Run agents just if they exist
Diffstat (limited to 'modules')
-rw-r--r--modules/profile/profile8
1 files changed, 6 insertions, 2 deletions
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