mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Renamed check-bool to is-true.
This commit is contained in:
parent
84ce0f42b5
commit
b2fcfc684c
5 changed files with 7 additions and 7 deletions
|
|
@ -40,7 +40,7 @@ function _ssh-agent-start() {
|
|||
|
||||
# Test if agent-forwarding is enabled.
|
||||
zstyle -b ':omz:plugin:ssh-agent' forwarding '_ssh_agent_forwarding'
|
||||
if check-bool "${_ssh_agent_forwarding}" && [[ -n "$SSH_AUTH_SOCK" ]]; then
|
||||
if is-true "${_ssh_agent_forwarding}" && [[ -n "$SSH_AUTH_SOCK" ]]; then
|
||||
# Add a nifty symlink for screen/tmux if agent forwarding.
|
||||
[[ -L "$SSH_AUTH_SOCK" ]] || ln -sf "$SSH_AUTH_SOCK" /tmp/ssh-agent-$USER-screen
|
||||
elif [ -f "${_ssh_agent_env}" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue