Coder Social home page Coder Social logo

Comments (10)

ratijas avatar ratijas commented on July 27, 2024

Literally, two years have passed...

from autoupdate-zgen.

unixorn avatar unixorn commented on July 27, 2024

I somehow missed this when you opened it, apologies. The main issue I have with a prompt is that then your new terminal windows are blocked on user input.

Maybe add the prompt only if ~/.zgen-prompt-autoupdate exists.

from autoupdate-zgen.

ratijas avatar ratijas commented on July 27, 2024

Isn't it exactly what happens now? From time to time, my workflow suddenly get all blocked by unexpected update, without leaving me much of a choice. Why does it feel like using Windows anyway?

Maybe I would be happy to update, but now right now. Maybe I'd even open a separate terminal window specifically for the update, but I definitely don't want to read an update log in an IntelliJ terminal widget, or at console tty while rescuing hung up Xorg server.

And the worst part — if you were to kill the untimely update process, you'd get completely bare zsh, since .zshrc wasn't fully executed.

from autoupdate-zgen.

ratijas avatar ratijas commented on July 27, 2024

With that being said, I really want automatic updates. Or at least, I want software to remind/tell me when an update is available. But it most certainly must not be such an intrusive process.

Besides, why not doing this somewhere in the background, completely non-interactively?

from autoupdate-zgen.

unixorn avatar unixorn commented on July 27, 2024

The plugin just calls zgen's internal commands and I didn't want to have them spewing output into the terminal session while you're trying to get work done. I didn't want to just toss it in /dev/null because then you don't get to see any error messages.

Maybe have a flag file to have it warn you "you need to do a zgen selfupdate/zgen update" without actually running the update.

from autoupdate-zgen.

ratijas avatar ratijas commented on July 27, 2024

There is definitely more than one way around it. But current strategy is clearly too straight-forward.

Also, would be good to have something like this in zgen itself. I mean, this kind of stuff is my dotfiles, it is not governed under jurisdiction of package managers — I can't just apt update && upgrade or pacman -Suy to update my shell plugins, because neither apt nor pacman aware of zgen.

from autoupdate-zgen.

unixorn avatar unixorn commented on July 27, 2024

When I originally brought it up, the zgen maintainer didn't want an autoupdate patch, which is why I wrote the plugin.

from autoupdate-zgen.

ratijas avatar ratijas commented on July 27, 2024

Maybe have a flag file to have it warn you "you need to do a zgen selfupdate/zgen update" without actually running the update.

You know, the old times when people used to have mail in their PS1... Except, now we have fully-blown themes managers like powerlevel{9,10}k and their informative widgets.

the zgen maintainer didn't want an autoupdate patch

Looking at their Gtihub activity, it is almost certainly a dead project by now. At this point, I'm sure they don't want to do anything about it, let alone autoupdate patch. Is it time to migrate elsewhere? Eeewww, changes, not again...

from autoupdate-zgen.

ratijas avatar ratijas commented on July 27, 2024

That's how I see it fit:

/me opens up zsh.
— Oh, hello there! Wanna update?
— I'm busy. Get lost.
— Understandable, have nice day.
zgen delays update prompt until tomorrow. It also prints on the screen instructions on how to perform manual update without waiting till next doomsday. (that's "actionable" for 'ya!)

On hour later:
/me finishes whatever he was doing.
— Damn, that was so rude. I'd better watch my attitude.
/me runs zgen update; zgen selfupdate manually.

Tomorrow:
zgen sees last update times, and further delays prompt by a whole week without asking.

from autoupdate-zgen.

unixorn avatar unixorn commented on July 27, 2024

I really didn't want to change away from zgen, but you're right, it is looking pretty dead.

from autoupdate-zgen.

Related Issues (5)

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.