aboutsummaryrefslogtreecommitdiff
path: root/X
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-27 12:37:44 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-27 12:37:55 +1200
commit1a08fd1a91b3d7d2b7403d95f6f3d6b39b81a7d6 (patch)
tree687d0a63ffa27c20216a5f9103bf2120a5ddc03b /X
parentUse only system-path mkdir/grep for options setup (diff)
downloaddotfiles-1a08fd1a91b3d7d2b7403d95f6f3d6b39b81a7d6.tar.gz
dotfiles-1a08fd1a91b3d7d2b7403d95f6f3d6b39b81a7d6.zip
Move SSH_ASKPASS setup to ~/.xinitrc
Diffstat (limited to 'X')
-rw-r--r--X/xinitrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/X/xinitrc b/X/xinitrc
index 5e3af7e1..3b9c13ea 100644
--- a/X/xinitrc
+++ b/X/xinitrc
@@ -2,6 +2,12 @@
BROWSER=firefox
export BROWSER
+# Set SSH_ASKPASS if we can find one
+if command -v ssh-askpass >/dev/null 2>&1 ; then
+ SSH_ASKPASS=$(command -v ssh-askpass)
+ export SSH_ASKPASS
+fi
+
# Read X resources
xrdb "${XRESOURCES:-$HOME/.Xresources}"