Coder Social home page Coder Social logo

autoupdate-zgen's Introduction

autoupdate-zgen

Important - DEPRECATED

zgen is no longer getting updates. However, the zgenom fork is getting updates and new features, and is basically zgen but better.

I recommend that you switch to zgenom and use the autoupdate-zgenom plugin with it instead.

This plugin will no longer get updates.

Status

License Build Status GitHub stars Code Climate Issue Count

zgen doesn't include an automatic update function like oh-my-zsh does.

autoupdate-zgen sets up easy automatic updating, both of zgenom or zgen and the plugins loaded in your configuration.

Activate with zgenom load unixorn/autoupdate-zgen or zgen load unixorn/autoupdate-zgen and regenerate your init.zsh file.

Configuration

  • Set ZGEN_PLUGIN_UPDATE_DAYS before calling the bundle if you don't want the default value of 7 days.
  • Set ZGEN_SYSTEM_UPDATE_DAYS before calling the bundle if you don't want the default value of 7 days.

autoupdate-zgen's People

Contributors

dan-santana avatar harningt avatar hcgraf avatar unixorn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

autoupdate-zgen's Issues

Use rm -f when removing lock file

Prezto is pretending to be helpful and aliases rm in to rm -i, which causes all rm actions to be interactive. This in turn causes the update process to stop and ask whether the lock file should be removed or not.

rm -f is a reasonable default anyway here, since we want to always remove the lockfile at the end of the update run.

unknown condition: -gt

I am getting this error on startup of my ZSH shell (with zsh-quickstart-kit)

expr: syntax error: missing argument after ‘-’
_zgen-check-for-updates:[:24: unknown condition: -gt

I traced it back to _zgen-check-for-updates and haven't found anything on the internet to make it work.

it only happens with zsh 5.5 and not in zsh 5.4

Autoupdate can get invoked as root

A while back I noticed that autoupdate-zgen tried to autoupdate zgen modules after a sudo call. If an update is successful in such a case, it will cause files to be created as root and will most likely result in permission denied errors when the user will later on invoke autoupdate.

The sane behavior would be to check that the user id is the same as the .zgen directory owner before invoking update. There are corner cases where this check isn't sane, but it should work for most cases.

Delay update / interactive update

Please, add an option to skip an update, like oh-my-zsh does. Sometimes it starts to update on a new tab in the most inconvenient moment, so a quick "Would you like Zgen to update?" may save some nerves. (:

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.