diff options
author | Florian Pritz <f-p@gmx.at> | 2009-03-19 22:34:08 +0100 |
---|---|---|
committer | Florian Pritz <f-p@gmx.at> | 2009-03-19 22:34:08 +0100 |
commit | f36450a69d2f6ae274dee9f38483da6dfef87647 (patch) | |
tree | e21925e3f9e5b31639e75f121f31c245d2eb65ae | |
parent | 03175ced4ce8ed403ea7e2503e4f272a2cbb2483 (diff) | |
download | dotfiles-f36450a69d2f6ae274dee9f38483da6dfef87647.tar.gz dotfiles-f36450a69d2f6ae274dee9f38483da6dfef87647.tar.xz |
only run agent when we have a display
-rw-r--r-- | .zsh/rc/30functions | 4 |
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(){ |