Coder Social home page Coder Social logo

autoupdate-zgen's Introduction

I'm an SRE and live in Denver. Don't contact me about cryptocoin "opportunities" - At best, kleptocoins are an ecological disaster, and they're also usually Ponzi scams. I want nothing to do with the entire ecosystem.

  • ๐Ÿ’ฌ My blog is at unixorn.github.io.
  • ๐Ÿ˜ My Mastodon is @[email protected]
  • ๐Ÿ”ญ When I'm not maintaining my various lists and projects, Iโ€™m usually tinkering on some IOT (More specifically, Home Assistant projects or playing around with some ARM single board computers, ESP32s or ESP8266s.
  • โšก I enjoy cooking, especially baking.
  • โšก I enjoy hiking and have summited a couple fourteeners (Quandary and Mt. Bierstadt).

If you like the lists I'm maintaining or the other projects I blog about, you can sponsor me, or buy geeky swag from my spreadshirt and redbubble shops.


Full history

autoupdate-zgen's People

Contributors

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

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. (:

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.

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.