diff --git a/README.md b/README.md index d6b40af0..d3545007 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,10 @@ Pull the latest changes and update submodules. git pull && git submodule update --init --recursive +Or use the alias: + + prezto-update + Usage ----- diff --git a/init.zsh b/init.zsh index 6b5254fb..dfd97a8e 100644 --- a/init.zsh +++ b/init.zsh @@ -111,3 +111,6 @@ unset zfunction{s,} zstyle -a ':prezto:load' pmodule 'pmodules' pmodload "$pmodules[@]" unset pmodules + +# Set alias to update Prezto. +alias prezto-update='(cd "${ZDOTDIR:-$HOME}/.zprezto/"; git pull && git submodule update --init --recursive)'