From 179f2d666a50f80715b1a2f80ba8fb48e7ac03b9 Mon Sep 17 00:00:00 2001 From: Elizabeth Date: Tue, 20 May 2025 10:03:18 -0700 Subject: Use submodule zsh-users scripts --- .gitmodules | 10 ++++++++++ zsh/.config/zsh/osx/init.zsh | 7 ------- zsh/.config/zsh/plugins/zsh-autosuggestions | 1 + zsh/.config/zsh/plugins/zsh-syntax-highlighting | 1 + zsh/.config/zsh/setup/tools.zsh | 5 +++++ 5 files changed, 17 insertions(+), 7 deletions(-) create mode 160000 zsh/.config/zsh/plugins/zsh-autosuggestions create mode 160000 zsh/.config/zsh/plugins/zsh-syntax-highlighting diff --git a/.gitmodules b/.gitmodules index 9df473e..796be5d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,7 +2,17 @@ path = tmux/.tmux/plugins/tpm url = https://github.com/tmux-plugins/tpm shallow = true + [submodule "alacritty/.config/alacritty/alacritty-theme"] path = alacritty/.config/alacritty/alacritty-theme url = https://github.com/alacritty/alacritty-theme shallow = true + +[submodule "zsh/.config/zsh/plugins/zsh-autosuggestions"] + path = zsh/.config/zsh/plugins/zsh-autosuggestions + url = https://github.com/zsh-users/zsh-autosuggestions + shallow = true +[submodule "zsh/.config/zsh/plugins/zsh-syntax-highlighting"] + path = zsh/.config/zsh/plugins/zsh-syntax-highlighting + url = https://github.com/zsh-users/zsh-syntax-highlighting + shallow = true diff --git a/zsh/.config/zsh/osx/init.zsh b/zsh/.config/zsh/osx/init.zsh index 40a3d8d..0cb288d 100755 --- a/zsh/.config/zsh/osx/init.zsh +++ b/zsh/.config/zsh/osx/init.zsh @@ -11,10 +11,3 @@ export PATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin:$PATH" #-- -- export PINENTRY_USER_DATA="PINENTRY_USE_MAC" #-- -- - -#-- -- -# brew install zsh-syntax-highlighting -source $HOMEBREW_PREFIX/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh -# brew install zsh-autosuggestions -source $HOMEBREW_PREFIX/share/zsh-autosuggestions/zsh-autosuggestions.zsh -#-- diff --git a/zsh/.config/zsh/plugins/zsh-autosuggestions b/zsh/.config/zsh/plugins/zsh-autosuggestions new file mode 160000 index 0000000..0e810e5 --- /dev/null +++ b/zsh/.config/zsh/plugins/zsh-autosuggestions @@ -0,0 +1 @@ +Subproject commit 0e810e5afa27acbd074398eefbe28d13005dbc15 diff --git a/zsh/.config/zsh/plugins/zsh-syntax-highlighting b/zsh/.config/zsh/plugins/zsh-syntax-highlighting new file mode 160000 index 0000000..5eb677b --- /dev/null +++ b/zsh/.config/zsh/plugins/zsh-syntax-highlighting @@ -0,0 +1 @@ +Subproject commit 5eb677bb0fa9a3e60f0eff031dc13926e093df92 diff --git a/zsh/.config/zsh/setup/tools.zsh b/zsh/.config/zsh/setup/tools.zsh index 1fc8844..fd66b63 100755 --- a/zsh/.config/zsh/setup/tools.zsh +++ b/zsh/.config/zsh/setup/tools.zsh @@ -13,3 +13,8 @@ alias cd="z" eval "$(starship init zsh)" #-- -- +#-- -- +export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=#626262,underline' +source "$ZDOTDIR/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" +source "$ZDOTDIR/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" +#-- -- -- cgit v1.2.3-70-g09d2