add zsh-autosuggestions

This commit is contained in:
Fred Klassen 2023-02-20 13:36:37 -08:00
commit 67f0c57324
No known key found for this signature in database
GPG key ID: E9E2149793BDE17E
3 changed files with 6 additions and 1 deletions

3
.gitmodules vendored
View file

@ -4,3 +4,6 @@
[submodule "themes/powerlevel10k"]
path = themes/powerlevel10k
url = https://github.com/romkatv/powerlevel10k.git
[submodule "plugins/zsh-autosuggestions"]
path = plugins/zsh-autosuggestions
url = https://github.com/zsh-users/zsh-autosuggestions.git

@ -0,0 +1 @@
Subproject commit a411ef3e0992d4839f0732ebeb9823024afaaaa8

View file

@ -302,7 +302,8 @@ setup_ohmyzsh() {
&& git config oh-my-zsh.branch "$BRANCH" \
&& git remote add origin "$REMOTE" \
&& git fetch --depth=1 origin \
&& git checkout -b "$BRANCH" "origin/$BRANCH" || {
&& git checkout -b "$BRANCH" "origin/$BRANCH" \
&& git submodule update --recursive --init || {
[ ! -d "$ZSH" ] || {
cd -
rm -rf "$ZSH" 2>/dev/null