Comments (6)
Thanks for the reply!
I will try to make a PR this weekend, it will be my first commit to a public ansible role, all the code that I have right now its just to learn 😅
Kindest regards.
from ansible-role-oh-my-zsh.
@roib20 Thank you for your work.
I am sorry I completely forgot I opened this issue, I have made a draft to see If I understand your idea. Here is the PR #156
Also I need to test this but I don't have time today.
Kindest regards.
from ansible-role-oh-my-zsh.
@jeop10 you're right that zshrc.j2
hasn't been updated in a while (and probably should be). But the DISABLE_AUTO_UPDATE="true"
is actually intentional, so all changes of Oh My Zsh are done using Ansible. I'd accept a PR to make it configurable, but the default should be false
.
from ansible-role-oh-my-zsh.
This issue is still present.
The latest versions of oh-my-zsh recommend using zstyle ':omz:update'
instead of environment variables to configure OMZ's auto-update behavior. My accepted pull request #148 brings this behavior to zshrc.j2
(in line with the current oh-my-zsh zshrc template). The current zshrc.j2
has these lines:
# Uncomment one of the following lines to change the auto-update behavior
zstyle ':omz:update' mode disabled # disable automatic updates
# zstyle ':omz:update' mode auto # update automatically without asking
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
# Uncomment the following line to change how often to auto-update (in days).
# zstyle ':omz:update' frequency 13
The configured behavior for this Role is still for auto-updates to be disabled: zstyle ':omz:update' mode disabled
. If this feature were to be implemented there should be a choice between disabled
, auto
, or reminder
, as well as an option to configure the frequency (in days).
@jeop10 if you still want to work on this I would personally appreciate it. If not, I could take a look into implementing it myself.
As a side-note gantsign/ansible_role_antigen already has this feature. However that role has a Deprecation Notice since Antigen is no longer maintained.
from ansible-role-oh-my-zsh.
@jeop10 Great work! Thank you for contributing. I have looked at your revised pull request. I think another thing that can be added is changing the auto-update frequency (in days). I'm talking about this line:
# Uncomment the following line to change how often to auto-update (in days).
# zstyle ':omz:update' frequency 13
This line needs to uncommented and the "13" should be a var. The default needs to be 13 days so that the OMZ auto-updater checks for updates every 13 days, but a user should be able to change this through the oh_my_zsh.update_frequency
var (for example oh_my_zsh.update_frequency: 1
to check for an update every day, or oh_my_zsh.update_frequency: 0
to check for an update every time a shell session is started - this might help with testing).
If you prefer not to work on this I can add it as a separate pull request after your current PR #156 gets merged.
from ansible-role-oh-my-zsh.
@roib20 Thank you!
I have just made some changes to implement your proposal. Review #156 to see the latest changes.
Please do let me know if I understood something wrong or any chances are needed.
Kindest regards.
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
- 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
- Add option to skip default .zshrc file creation HOT 5
- 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.