mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-25 01:03:41 +01:00
fix(ssh-agent): use termux prefix for tmp (#12695)
This commit is contained in:
parent
c1679a12f8
commit
2a2f8ecb67
@ -100,8 +100,12 @@ function _add_identities() {
|
|||||||
if zstyle -t :omz:plugins:ssh-agent agent-forwarding \
|
if zstyle -t :omz:plugins:ssh-agent agent-forwarding \
|
||||||
&& [[ -n "$SSH_AUTH_SOCK" ]]; then
|
&& [[ -n "$SSH_AUTH_SOCK" ]]; then
|
||||||
if [[ ! -L "$SSH_AUTH_SOCK" ]]; then
|
if [[ ! -L "$SSH_AUTH_SOCK" ]]; then
|
||||||
|
if [[ -n "$TERMUX_VERSION" ]]; then
|
||||||
|
ln -sf "$SSH_AUTH_SOCK" "$PREFIX"/tmp/ssh-agent-$USERNAME-screen
|
||||||
|
else
|
||||||
ln -sf "$SSH_AUTH_SOCK" /tmp/ssh-agent-$USERNAME-screen
|
ln -sf "$SSH_AUTH_SOCK" /tmp/ssh-agent-$USERNAME-screen
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
_start_agent
|
_start_agent
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user