2024-03-30 18:27:28 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-03-30 18:36:49 +00:00
|
|
|
# set up moolticute ssh agent
|
2024-03-30 18:27:28 +00:00
|
|
|
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
|
2024-04-11 19:25:48 +00:00
|
|
|
# once mc-agent started successfully override gnome-keyring ssh component
|
2024-03-30 18:27:28 +00:00
|
|
|
eval "$(<~/.mc-agent-env)"
|
|
|
|
fi
|