aboutsummaryrefslogtreecommitdiff
path: root/kshrc
diff options
context:
space:
mode:
Diffstat (limited to 'kshrc')
-rw-r--r--kshrc8
1 files changed, 6 insertions, 2 deletions
diff --git a/kshrc b/kshrc
index a4b73ad..bd44bba 100644
--- a/kshrc
+++ b/kshrc
@@ -679,8 +679,12 @@ export PASSWORD_STORE_ENABLE_EXTENSIONS=true
setaliases
setsudoaliases
-# checkSSHAgent
-
+if [ -n "$DISPLAY" ] ; then
+ checkSSHAgent
+ [ -x "$(command -v dmenu_askpass)" ] && \
+ export SSH_ASKPASS=dmenu_askpass
+fi
+
# Support various different shells
if [ -n "$YASH_VERSION" ] ; then