start-post-i3: use askpass autodetection
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in -19s

This commit is contained in:
Nico Schottelius 2024-09-11 14:14:10 +09:00
parent 166a65084d
commit bb844234de

View file

@ -19,11 +19,14 @@ fi
emacs --daemon
if [ -f /etc/arch-release ]; then
SSH_ASKPASS=/usr/bin/qt4-ssh-askpass
elif [ -x /usr/bin/ssh-askpass-fullscreen ]; then
SSH_ASKPASS=/usr/bin/ssh-askpass-fullscreen
fi
for askpass in /usr/lib/ssh/gtk-ssh-askpass \
/usr/bin/ssh-askpass-fullscreen \
/usr/bin/qt4-ssh-askpass; do
if [ -x $askpass ]; then
SSH_ASKPASS=$askpass
break
fi
done
ssh-add </dev/null && mainemacs &
# Dell XPS 13" 2-in-1