mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-04 07:39:25 +00:00
[zprezto-update] Add convenience function to update zprezto (#1344)
* [zprezto-update] Add convenience function to update zprezto This function checks if there is any update to zprezto, and if so will pull in the changes. It will not attempt a pull unless it is fastforwardable. It also makes sure the user is on the master branch before attempting. * [zprezto-update] Improve resilience of the function Better error checking of status of the git repository and better error producing. Fit columns into mostly 80 width and add a missing printf argument. Use ( ) around the function so changing directory does not affect the outer scope. * [README] Add instructions on using zprezto-update function
This commit is contained in:
committed by
Kaleb Elwert
parent
eb47b45a0d
commit
87868441eb
11
README.md
11
README.md
@ -50,9 +50,16 @@ window or tab.
|
||||
Updating
|
||||
--------
|
||||
|
||||
Pull the latest changes and update submodules.
|
||||
Run `zprezto-update` to automatically check if there is an update to zprezto.
|
||||
If there are no file conflicts, zprezto its submodules will be automatically
|
||||
be updated. If there are conflicts you will instructed to go
|
||||
into the `$ZPREZTODIR` directory and resolve them yourself.
|
||||
|
||||
git pull && git submodule update --init --recursive
|
||||
To pull the latest changes and update submodules manually:
|
||||
|
||||
cd $ZPREZTODIR
|
||||
git pull
|
||||
git submodule update --init --recursive
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
Reference in New Issue
Block a user