Hacker News new | ask | show | jobs
by nunez 5 days ago
My dotfiles in a nutshell.

- I want to add a shell function that invoked Claude in a VM via Lima using API keys stored in 1Pass

- But that means I need a way of templating the YAML file that will define Claude's VM and a reliable way of syncing state between it and my machine

- I could use a templating language like Jinja or Starlark, but that's another dependency for a relatively simple job

- Also, what if I want to use Pi or opencode someday?

- So I spent more time than I care to admit hacking a Bash function that replaces template variables in Lima YAML files that doesn't throw a cow when you throw in single or double quotes.

(I got my Claude VM function thing working, and it works really well!)

1 comments

> and a reliable way of syncing state between it and my machine

What was your solution for this? Keeping hosts reliably synced across the network is a perpetual source of frustration for me.