summaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc8
1 files changed, 7 insertions, 1 deletions
diff --git a/zshrc b/zshrc
index e39d09d..b27453c 100644
--- a/zshrc
+++ b/zshrc
@@ -60,12 +60,18 @@ if [ -d $ZDOTDIR ]; then
"host:$HOST/user:$SUDO_USER"
do
specific_script=${script:h}/$i/${${script:t}/??_/}
- if test -f $specific_script
+ if test -f $specific_script
then
[ "$DEBUG" = "yes" ] && echo -n "$i/${${specific_script:t:r}/??_/}... ";
source $specific_script
[ "$DEBUG" = "yes" ] && echo
fi
+ if test -f $specific_script:r.gpg
+ then
+ [ "$DEBUG" = "yes" ] && echo -n "$i/${${specific_script:t:r}/??_/}... ";
+ gpg --decrypt $specific_script | source
+ [ "$DEBUG" = "yes" ] && echo
+ fi
done
done
fi