@echo off setlocal rem Convert current Windows dir to a WSL path (lowercase drive + forward slashes) set "WSLDIR=%CD:\=/%" set "WSLDIR=%WSLDIR::=%" set "DRIVE=%WSLDIR:~0,1%" for %%C in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do if /i "%%C"=="%DRIVE%" set "WSLDIR=%%C%WSLDIR:~1%" set "WSLDIR=/mnt/%WSLDIR%" rem -i is essential: in a non-interactive shell PS1 is empty, so ~/.bashrc's rem interactive guard returns early and the model-mapping env vars are lost wsl -e bash -ic "cd '%WSLDIR%' && /root/.local/bin/claude --continue" pause