Horje
how to check ssh agent is running in git bash Code Example
how to check ssh agent is running in git bash
# Set up ssh-agent
SSH_ENV="$HOME/.ssh/environment"

function start_agent {
    echo "Initializing new SSH agent..."
    touch $SSH_ENV
    chmod 600 "${SSH_ENV}"
    /usr/bin/ssh-agent | sed 's/^echo/#echo/' >> "${SSH_ENV}"
    . "${SSH_ENV}" > /dev/null
    /usr/bin/ssh-add
}

# Source SSH settings, if applicable
if [ -f "${SSH_ENV}" ]; then
    . "${SSH_ENV}" > /dev/null
    kill -0 $SSH_AGENT_PID 2>/dev/null || {
        start_agent
    }
else
    start_agent
fi




Shell

Related
how to check default path of the nginx Code Example how to check default path of the nginx Code Example
gh login with github Code Example gh login with github Code Example
nvm uninstall node Code Example nvm uninstall node Code Example
remove inkscape Code Example remove inkscape Code Example
rstudio find out if package is installed Code Example rstudio find out if package is installed Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11