Fix alias and okc ssh agent setup

This commit is contained in:
Marko Korhonen 2022-08-29 00:10:06 +03:00
parent 3a6725ae09
commit 29df7d4b94
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
2 changed files with 2 additions and 4 deletions

View file

@ -69,9 +69,7 @@ if [ "$SSH_CONNECTION" = "" ]; then
gpg-connect-agent updatestartuptty /bye >/dev/null
fi
{%@@ elif os == "termux" @@%}
if ! pgrep okc-ssh-agent > /dev/null; then
okc-ssh-agent > "$PREFIX/tmp/okc-ssh-agent.env"
fi
eval $(okc-ssh-agent)
{%@@ endif @@%}
# Enable grc colorization of supported commands

View file

@ -44,7 +44,7 @@ pr() {
{%@@ endif @@%}
{%@@ if os == "termux" @@%}
alias okc-gpg='gpg'
alias gp='okc-gpg'
{%@@ endif @@%}
# find and open man pages with fzf