mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-01-02 14:26:48 +00:00
general: Apply submodules' path change in doc and zprezto-update
We need to accommodate cases where a submodule local path (or remote) URL can change. Accordingly, update instruction and `zprezto-update` function to synchronizes submodules' remote URL configuration setting to the updated value automatically.
This commit is contained in:
parent
95d223aa8a
commit
be61026920
@ -65,6 +65,7 @@ To pull the latest changes and update submodules manually:
|
|||||||
```console
|
```console
|
||||||
cd $ZPREZTODIR
|
cd $ZPREZTODIR
|
||||||
git pull
|
git pull
|
||||||
|
git submodule sync --recursive
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
```
|
```
|
||||||
|
|
||||||
|
1
init.zsh
1
init.zsh
@ -44,6 +44,7 @@ function zprezto-update {
|
|||||||
printf "There is an update available. Trying to pull.\n\n"
|
printf "There is an update available. Trying to pull.\n\n"
|
||||||
if git pull --ff-only; then
|
if git pull --ff-only; then
|
||||||
printf "Syncing submodules\n"
|
printf "Syncing submodules\n"
|
||||||
|
git submodule sync --recursive
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
return $?
|
return $?
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user