summaryrefslogtreecommitdiffstats
path: root/.zsh/rc/30functions
diff options
context:
space:
mode:
Diffstat (limited to '.zsh/rc/30functions')
-rw-r--r--.zsh/rc/30functions4
1 files changed, 3 insertions, 1 deletions
diff --git a/.zsh/rc/30functions b/.zsh/rc/30functions
index df95ee4..ff42b2d 100644
--- a/.zsh/rc/30functions
+++ b/.zsh/rc/30functions
@@ -130,7 +130,9 @@ yd(){
}
# some script to make this damn agent work easier
-source ${HOME}/bin/gpg-agent.sh
+if [ "x$DISPLAY" != "x" ]; then
+ source ${HOME}/bin/gpg-agent.sh
+fi
# yeah I know you shouldn't use it...
google(){