IP speaking: You can make the code public in your repository, but keep a private set of scripts that you won't move between companies. This also helps reducing the information you're leaking about the company you work for, to avoid stuff like [1].
[0]: https://www.chezmoi.io/
[1]: https://cs.github.com/?scopeName=All+repos&scope=&q=corp.goo...