agent-joule/crates/zed/resources/windows/zed.sh
David Charlot a084434e14 Baseline: hard fork of zed@e2e7a67
Fork point for agent-zed. Editor core retained; AI/telemetry/cloud layers
to be ripped and replaced per FORK_MAP.md.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-05-30 08:20:23 -04:00

25 lines
493 B
Shell

#!/usr/bin/env sh
if [ "$ZED_WSL_DEBUG_INFO" = true ]; then
set -x
fi
ZED_PATH="$(dirname "$(realpath "$0")")"
IN_WSL=false
if [ -n "$WSL_DISTRO_NAME" ]; then
# $WSL_DISTRO_NAME is available since WSL builds 18362, also for WSL2
IN_WSL=true
fi
if [ $IN_WSL = true ]; then
WSL_USER="$USER"
if [ -z "$WSL_USER" ]; then
WSL_USER="$USERNAME"
fi
"$ZED_PATH/zed.exe" --wsl "$WSL_USER@$WSL_DISTRO_NAME" "$@"
exit $?
else
"$ZED_PATH/zed.exe" "$@"
exit $?
fi