Skip to content

Plugin for oh-my-zsh to automatically update custom-plugins changed for using submodules to install plugins

License

Notifications You must be signed in to change notification settings

Dave4272-Office/autoupdate-oh-my-zsh-plugins

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autoupdate-zsh-plugin

Only use this if you use git submodules to install ZSH Custom Plugins.

oh-my-zsh plugin for auto updating of git-repositories in $ZSH_CUSTOM folder

Install

cd into $ZSH_CUSTOM/plugins and add this repo as submodule.

git submodule add -f https://github.com/Dave4272-Office/autoupdate-oh-my-zsh-plugins.git autoupdate

Usage

Add autoupdate to the plugins=() list in your ~/.zshrc file and you're done. The updates will be executed automatically as soon as the oh-my-zsh updater is started. Note that this will autoupdate both plugins and also themes found in the $ZSH_CUSTOM folder.

If you want to check for updates more often, you can adjust this line in the ~/.zshrc file. Default command:

# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13

Changed command: (checks daily for updates)

# Uncomment the following line to change how often to auto-update (in days).
export UPDATE_ZSH_DAYS=1

Another possibility is to use the provided upgrade function, which one may call at any time using upgrade_oh_my_zsh_custom. There shouldn't be any difference with the automatic operation. Also, a convenient alias that calls the OhMyZsh update function omz update and then upgrade_oh_my_zsh_custom, called upgrade_oh_my_zsh_all, is available as well.

Quiet mode

To turn off the "Upgrading custom plugins" message (for example, if you're using Powerlevel10k's instant prompt), add this to your ~/.zshrc file:

# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
ZSH_CUSTOM_AUTOUPDATE_QUIET=true

About

Plugin for oh-my-zsh to automatically update custom-plugins changed for using submodules to install plugins

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%