Read

The read helper function reads the content of a file and returns it as a string.

Here's an example where we use the read function to inject our custom ZSH snippets into zshrc using read:

Blockinfile({
  state = true,
  block = read("my_zshrc"),
  path = "~/.zshrc"
})