dotfiles/.customrc
2024-03-30 14:36:49 -04:00

24 lines
560 B
Bash

#!/bin/bash
# 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
# add uxn to path
if [ -d "$HOME/code/git.sr.ht/rabbits/uxn/bin" ]; then
export PATH=${PATH}:${HOME}/code/git.sr.ht/rabbits/uxn/bin
fi
# 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
eval "$(<~/.mc-agent-env)"
fi