2024-03-30 18:27:28 +00:00
|
|
|
#!/bin/bash
|
2024-03-30 18:36:49 +00:00
|
|
|
# add golang to PATH
|
|
|
|
|
|
|
|
if [ -d "/usr/lib/go-1.22/bin/" ]; then
|
|
|
|
export PATH=${PATH}:/usr/lib/go-1.22/bin
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -d "${HOME}/go/bin" ]; then
|
|
|
|
export PATH=${PATH}:${HOME}/go/bin
|
|
|
|
fi
|
2024-03-30 18:27:28 +00:00
|
|
|
|
|
|
|
# add uxn to path
|
2024-03-30 18:36:49 +00:00
|
|
|
if [ -d "$HOME/code/git.sr.ht/rabbits/uxn/bin" ]; then
|
|
|
|
export PATH=${PATH}:${HOME}/code/git.sr.ht/rabbits/uxn/bin
|
|
|
|
fi
|
2024-03-30 18:27:28 +00:00
|
|
|
|
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
|
|
|
|
eval "$(<~/.mc-agent-env)"
|
|
|
|
fi
|