11 lines
318 B
Bash
11 lines
318 B
Bash
#!/bin/bash
|
|
|
|
# set up moolticute ssh agent
|
|
if ! pgrep -u "$USER" mc-agent >/dev/null; then
|
|
mc-agent >~/.mc-agent-env
|
|
fi
|
|
if pgrep -u "$USER" mc-agent &>/dev/null && grep -q 'SSH_AUTH_SOCK=' ~/.mc-agent-env; then
|
|
# once mc-agent started successfully override gnome-keyring ssh component
|
|
eval "$(<~/.mc-agent-env)"
|
|
fi
|