Enable SSH agent forwarding for termux
This commit is contained in:
parent
ac829e286a
commit
0deb2e37e0
1 changed files with 2 additions and 3 deletions
|
@ -61,12 +61,11 @@ export MANPAGER="$EDITOR +\"lua require 'pager'\" +Man!"
|
|||
export SYSTEMD_EDITOR=$EDITOR
|
||||
export SYSTEMD_PAGER=less
|
||||
|
||||
{%@@ if os == "arch" or os == "ubuntu" @@%}
|
||||
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
||||
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||
fi
|
||||
gpgconf --launch gpg-agent
|
||||
{%@@ elif os == "termux" @@%}
|
||||
{%@@ if os == "termux" @@%}
|
||||
|
||||
eval $(okc-ssh-agent)
|
||||
{%@@ endif @@%}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue