Code Monkey home page Code Monkey logo

Comments (5)

YacineSahli avatar YacineSahli commented on August 16, 2024

Hi, u should move ur custom config in the ./oh-my-zsh/custom/ folder.

from ansible-role-oh-my-zsh.

mircsicz avatar mircsicz commented on August 16, 2024

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.

Virtlink avatar Virtlink commented on August 16, 2024

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.

freemanjp avatar freemanjp commented on August 16, 2024

@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.

DavidGL17 avatar DavidGL17 commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.