gantsign / ansible-role-oh-my-zsh

Ansible role for installing and configuring oh-my-zsh
https://galaxy.ansible.com/gantsign/oh-my-zsh
MIT License
165 stars 41 forks source link

Allow overriding .zshrc templates #89

Closed TravisWhitehead closed 5 years ago

TravisWhitehead commented 5 years ago

It would be nice if users could override the .zshrc template. You can accomplish this by making the contents of src a variable. See this PR as an example: https://github.com/geerlingguy/ansible-role-gitlab/pull/89/files

freemanjp commented 5 years ago

@TravisWhitehead thanks for raising this feature request.

If you need to customise the .zshrc you're better off using a ZSH plugin manager such as Antigen. I have a couple of Ansible roles for Antigen gantsign.antigen and gantsign.antigen_bundles. I've been using these instead of the gantsign.oh-my-zsh role for more than a year now.

With Antigen you can use Oh My Zsh plugins, or other open source ZSH plugins, or write your own (these can be hosted on GitHub or installed locally). Each plugin can contain a ZSH script that is effectively included (sourced) into your .zshrc and/or a tab-completion file. I have some ZSH plugins hosted on GitHub https://github.com/gantsign/zsh-plugins you can look at.

So unfortunately I don't plan on implementing your feature request. I recommend you look at the gantsign.antigen role instead.