Git Product home page Git Product logo

autoupdate-oh-my-zsh-plugins's People

Contributors

cboone avatar dbirks avatar elliotwutingfeng avatar g00fy2 avatar hendrikkoelbel avatar igorwojda avatar jnooree avatar liby avatar nicolasbarra avatar pauldance avatar siriniok avatar sugarsnack avatar tamcore avatar therzok avatar vikalprusia avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

autoupdate-oh-my-zsh-plugins's Issues

Follow symlinks

Could you replace find "${ZSH_CUSTOM}" -type d -name .git | while read d with find -L "${ZSH_CUSTOM}" -type d -name .git | while read d?

I have all my plugins and themes symlinked to a folder that's synced (via Syncthing) to my other computers.

~/.oh-my-zsh/custom/plugins> ll                                                                                                                                                             
total 0
lrwxr-xr-x 1 user user 45 Jul  8 18:11 autoupdate -> ../../../.backup/oh-my-zsh/plugins/autoupdate
drwx------ 3 user user 96 Jul  8 16:49 example
lrwxr-xr-x 1 user user 54 Jul  8 18:11 zsh-autosuggestions -> ../../../.backup/oh-my-zsh/plugins/zsh-autosuggestions
lrwxr-xr-x 1 user user 50 Jul  8 18:11 zsh-completions -> ../../../.backup/oh-my-zsh/plugins/zsh-completions
lrwxr-xr-x 1 user user 58 Jul  8 18:11 zsh-syntax-highlighting -> ../../../.backup/oh-my-zsh/plugins/zsh-syntax-highlighting

Without -L, upgrade_oh_my_zsh_custom cannot find any of the git repositories.

I tested the updated find command with symlinked plugins and plugins in directories in the same plugins directory. It could find all repositories. Therefore, adding -L should be no issue for users without symlinks.

If you want to make it absolutely save, you could introduce a variable which overrides the behavior.

Thanks in advance.

New name suggestion

Since this works with oh-my-zsh and not other ZSH frameworks like zgen or antigen, I suggest you rename it to autoupdate-oh-my-zsh-plugins.

I'd like to add this to awesome-zsh-plugins, but I'd prefer to do that after you rename it if you decide to do that.

Thanks

Add support for "main" default branch

Some plugin repositories have renamed their master branch to main.
This autoupdate plugin should work on both configuration.

Thanks for this little but useful plugin ;)

upgrade_oh_my_zsh marked as deprecated

It seems that the Oh My Zsh community decided to introduce a new omz command to centralize OMZ-related actions and moved the update mechanism to it: ohmyzsh/ohmyzsh@3935ccc. So now, when using this plugin's upgrade_ohl_my_zsh command which calls the old upgrade_oh_my_zsh function, it displays this:

image

Maybe consider replacing the call to the deprecated command with the new omz update?
Cheers.

Updater not running with oh-my-zsh update

When I run omz update it does not update custom plugins folder as stated in the readme file

Instead I get following output

Updating Oh My Zsh
         __                                     __
  ____  / /_     ____ ___  __  __   ____  _____/ /_
 / __ \/ __ \   / __ `__ \/ / / /  /_  / / ___/ __ \
/ /_/ / / / /  / / / / / / /_/ /    / /_(__  ) / / /
\____/_/ /_/  /_/ /_/ /_/\__, /    /___/____/_/ /_/
                        /____/

Oh My Zsh is already at the latest version.

To keep up with the latest news and updates, follow us on Twitter: @ohmyzsh
Want to get involved in the community? Join our Discord: Discord server
Get your Oh My Zsh swag at: Planet Argon Shop

Only when I run upgrade_oh_my_zsh_all I get the expected output

Updating Oh My Zsh
         __                                     __
  ____  / /_     ____ ___  __  __   ____  _____/ /_
 / __ \/ __ \   / __ `__ \/ / / /  /_  / / ___/ __ \
/ /_/ / / / /  / / / / / / /_/ /    / /_(__  ) / / /
\____/_/ /_/  /_/ /_/ /_/\__, /    /___/____/_/ /_/
                        /____/

Oh My Zsh is already at the latest version.

To keep up with the latest news and updates, follow us on Twitter: @ohmyzsh
Want to get involved in the community? Join our Discord: Discord server
Get your Oh My Zsh swag at: Planet Argon Shop
Upgrading Custom Plugins
The autoupdate plugin was already at the latest version.

Upgrade function does not leave the last directory

It seems to me that the core function performing the upgrade itself goes
correctly in all git repositories of the $ZSH_CUSTOM, but does not change
back to the original working directory as of when calling the script.

To test this, I simply commented out the last line of the main script file, the
one unsetting local functions, and then directly:

$ source ./autoupdate.plugin.zsh
$ _upgrade_custom
<...>

This should call the upgrade function just like it does normally, but when
it is done, the shell is placed in the last updated plugin or theme, which
is undesirable in my opinion.

I think simply saving the $PWD before cd ing to upgrade plugins and
changing back to it after that is done should do the trick. Would a PR be
good for this?

Cheers.

The upgrade_oh_my_zsh_all command doesn't update custom plugins when an update for Oh My Zsh is available

I sometimes run upgrade_oh_my_zsh_all to keep Oh My Zsh and my plugins updated. I noticed that whenever there is an update for Oh My Zsh, the upgrade_oh_my_zsh_all command updates only Oh My Zsh, when it was actually supposed to update the custom plugins as well. To get the plugins updated properly, I have to run upgrade_oh_my_zsh_all again.

omz version: master (0a9a80a) -> https://github.com/ohmyzsh/ohmyzsh/tree/0a9a80a524ca277ed6573e233204806f800a9292

autoupdate plugin version: 677f9f6

Can't make this work, either by calling `upgrade_oh_my_zsh` nor automatically

Hey man, could you help me?

I've cloned like you've said in the readme:

❯ git clone https://github.com/TamCore/autoupdate-oh-my-zsh-plugins $ZSH_CUSTOM/plugins/autoupdate

My dir is now:

❯ ls $ZSH_CUSTOM/plugins/
autoupdate                   zsh-autosuggestions          zsh-syntax-highlighting
example                      zsh-history-substring-search

In my .zshrc I have:

plugins=(autoupdate pyenv zsh-autosuggestions history-substring-search z zsh-syntax-highlighting)

I've started another shell, but when I run upgrade it doesn't kick in:

❯ upgrade_oh_my_zsh
Updating Oh My Zsh
From https://github.com/ohmyzsh/ohmyzsh
 * branch            master     -> FETCH_HEAD
Current branch master is up to date.
         __                                     __
  ____  / /_     ____ ___  __  __   ____  _____/ /_
 / __ \/ __ \   / __ `__ \/ / / /  /_  / / ___/ __ \
/ /_/ / / / /  / / / / / / /_/ /    / /_(__  ) / / /
\____/_/ /_/  /_/ /_/ /_/\__, /    /___/____/_/ /_/
                        /____/
Hooray! Oh My Zsh has been updated and/or is at the current version.
To keep up on the latest news and updates, follow us on twitter: https://twitter.com/ohmyzsh
Get your Oh My Zsh swag at: https://shop.planetargon.com/collections/oh-my-zsh
❯

I'm on macOS:

❯ zsh --version
zsh 5.7.1 (x86_64-apple-darwin19.0)

Can you imagine what is going on?

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.