diff --git a/src/vm.ts b/src/vm.ts index 52308a2..f446815 100644 --- a/src/vm.ts +++ b/src/vm.ts @@ -23,7 +23,11 @@ export async function ensure(): Promise { await $`limactl shell ${VM_NAME} -- sudo apt install -y neofetch fish`.quiet() - await $`limactl shell ${VM_NAME} -- sudo apt install -y fish"`.quiet() + // Configure git from host settings + const gitName = (await $`git config user.name`.quiet().text()).trim() + const gitEmail = (await $`git config user.email`.quiet().text()).trim() + if (gitName) await $`limactl shell ${VM_NAME} -- git config --global user.name ${gitName}`.quiet() + if (gitEmail) await $`limactl shell ${VM_NAME} -- git config --global user.email ${gitEmail}`.quiet() // Replace ~/.claude and ~/.claude.json with symlinks to host credentials await $`limactl shell ${VM_NAME} -- bash -c "rm -rf ~/.claude ~/.claude.json && ln -sf ${home}/.claude ~/.claude && ln -sf ${home}/.claude.json ~/.claude.json"`.quiet()