Comments (5)
Hi, u should move ur custom config in the ./oh-my-zsh/custom/ folder.
from ansible-role-oh-my-zsh.
Can u please be specific about the path of that folder?
I've been looking in roles/gantsign.oh-my-zsh but can't find it there...
Maybe you're expecting it to be created in that path? Or is it safe to edit roles/gantsign.oh-my-zsh/templates/zshrc.j2?
EDIT: OK I got it: The Path is: ~/.oh-my-zsh/custom/ and there's already an example.zsh
I use this task to copy a template to the Dir:
- name: Copy Templates for {{remoteuser}}
ansible.builtin.template:
src: "{{ item.src }}"
dest: "{{ item.dst }}"
owner: "{{ remoteuser }}"
group: "{{ remoteuser }}"
with_items:
- { src: '{{ tmpldir }}zshcustoms.j2', dst: '{{homepath}}{{remoteuser}}/.oh-my-zsh/custom/zshcustoms.zsh' }
from ansible-role-oh-my-zsh.
To add to this, in my case, I am using stow
to save my .dotfiles in a Git repository, and unstow them using Ansible. But if I run this role before unstowing, unstowing fails because this role wrote to .zshrc
. Alternatively, if I unstow first and then run this rule, it moves my symlinked .zshrc
to a different name, which is also incorrect.
The role does not seem to be idempotent, and it would be great if generating .zshrc
could be skipped.
from ansible-role-oh-my-zsh.
@DavidGL17 thanks for raising this issue, a flag to control this behavior has been added in version 2.7.0 of this role.
from ansible-role-oh-my-zsh.
Thank you very much for your work, sorry for not giving any answers after my question i was a bit occupied these last few weeks ^^
from ansible-role-oh-my-zsh.
Related Issues (20)
- Error when installing role on OSX HOT 1
- Does not work as expected HOT 2
- Feature Request: Custom plugin installation HOT 5
- Prexis the users variable HOT 1
- Customising .zshrc HOT 2
- Disabled updated HOT 6
- how to install ohmyzsh for users using loop? HOT 3
- change in theme/plugins doesn't make it to .zshrc HOT 3
- Whitelist Dependabot in cla-assistant
- Missing acl package in oh_my_zsh_dependencies HOT 2
- What should I do to make zsh-autosuggestions work? HOT 3
- Install custom themes and plugins
- chmod: invalid mode HOT 1
- Add support for Fedora 25
- Add support for OpenSUSE 42.2
- `users` variable name too generic HOT 1
- Temp file issues HOT 2
- Allow overriding .zshrc templates HOT 1
- Unable to write .zshrc while connected with unprivilegied user HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-oh-my-zsh.