From 18c5cadae8ce9a97607ce64c8b570f1445250c1e Mon Sep 17 00:00:00 2001 From: Fabio Perez Date: Mon, 22 Feb 2016 13:55:20 -0300 Subject: [PATCH] Add alias to update Prezto --- README.md | 4 ++++ init.zsh | 3 +++ 2 files changed, 7 insertions(+) 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)'