Enable SSH agent forwarding for termux

main
Marko Korhonen 2 years ago
parent 2ad579435f
commit 99e9761783
No known key found for this signature in database
GPG Key ID: A7F78BCB859CD890

@ -61,12 +61,11 @@ export MANPAGER="$EDITOR +\"lua require 'pager'\" +Man!"
export SYSTEMD_EDITOR=$EDITOR export SYSTEMD_EDITOR=$EDITOR
export SYSTEMD_PAGER=less export SYSTEMD_PAGER=less
{%@@ if os == "arch" or os == "ubuntu" @@%}
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi fi
gpgconf --launch gpg-agent {%@@ if os == "termux" @@%}
{%@@ elif os == "termux" @@%}
eval $(okc-ssh-agent) eval $(okc-ssh-agent)
{%@@ endif @@%} {%@@ endif @@%}

Loading…
Cancel
Save