configure git in vm
This commit is contained in:
parent
cedf6705ef
commit
dba67fea80
|
|
@ -23,7 +23,11 @@ export async function ensure(): Promise<void> {
|
||||||
|
|
||||||
await $`limactl shell ${VM_NAME} -- sudo apt install -y neofetch fish`.quiet()
|
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
|
// 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()
|
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()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user