start-post-i3: use askpass autodetection
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in -19s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in -19s
This commit is contained in:
parent
166a65084d
commit
bb844234de
1 changed files with 8 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue