Add: opencode PATH and WSL keyring/dbus setup

This commit is contained in:
2026-07-29 10:45:23 -05:00
parent 892aca56df
commit bfb6dcd4df
+13
View File
@@ -29,11 +29,24 @@ if [[ -d $HOME/.scripts && ":$PATH:" != *":$PATH:"* ]]; then
export PATH=$PATH:$HOME/.scripts export PATH=$PATH:$HOME/.scripts
fi fi
# Add opencode binaries to $PATH if they exist
if [[ -d $HOME/.opencode/bin && ":$PATH:" != *":$HOME/.opencode/bin:"* ]]; then
export PATH=$PATH:$HOME/.opencode/bin
fi
# Linux specific # Linux specific
# if [[ "$(uname -s)" == "Linux" ]]; then # if [[ "$(uname -s)" == "Linux" ]]; then
# fi # fi
# WSL specific
if [ -n "$IS_WSL" ] || [ -n "$WSL_DISTRO_NAME" ]; then
eval $(dbus-launch --sh-syntax 2>/dev/null) 2>/dev/null || true
eval $(printf '' | gnome-keyring-daemon --unlock 2>/dev/null) 2>/dev/null || true
export SSH_AUTH_SOCK
export SECRET_SERVICE_BUS_ADDRESS="unix:path=/run/user/$(id -u)/keyring/control"
fi
# MacOS specific # MacOS specific
if [[ "$(uname -s)" == "Darwin" ]]; then if [[ "$(uname -s)" == "Darwin" ]]; then
# Add python3.8 $PATH if installed and not already in $PATH # Add python3.8 $PATH if installed and not already in $PATH