only check our processes for ssh-agent
This commit is contained in:
parent
40ac92ec17
commit
61df900e57
2
.zshrc
2
.zshrc
|
@ -67,7 +67,7 @@ alias senv="source .env/bin/activate"
|
||||||
if [ -z "$SSH_AUTH_SOCK" ]
|
if [ -z "$SSH_AUTH_SOCK" ]
|
||||||
then
|
then
|
||||||
# Check for a currently running instance of the agent
|
# Check for a currently running instance of the agent
|
||||||
RUNNING_AGENT="`ps -ax | grep 'ssh-agent -s' | grep -v grep | wc -l | tr -d '[:space:]'`"
|
RUNNING_AGENT="`ps -x | grep 'ssh-agent -s' | grep -v grep | wc -l | tr -d '[:space:]'`"
|
||||||
if [ "$RUNNING_AGENT" = "0" ]
|
if [ "$RUNNING_AGENT" = "0" ]
|
||||||
then
|
then
|
||||||
# Launch a new instance of the agent
|
# Launch a new instance of the agent
|
||||||
|
|
Loading…
Reference in New Issue