aboutsummaryrefslogtreecommitdiffstats
path: root/zuwu.zsh
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-01-03 04:08:25 +0100
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-01-03 04:08:25 +0100
commit5bb8ae174ea1af3f9c727a5ff5d2ff02732f18d8 (patch)
tree2565be1b09137996e856f36984b9fd78eb88b0b5 /zuwu.zsh
parentb70d5b3ee4cda01646406d4d1fe149dc3d41b308 (diff)
downloadzuwu-5bb8ae174ea1af3f9c727a5ff5d2ff02732f18d8.tar.gz
zuwu-5bb8ae174ea1af3f9c727a5ff5d2ff02732f18d8.tar.bz2
zuwu-5bb8ae174ea1af3f9c727a5ff5d2ff02732f18d8.tar.lz
zuwu-5bb8ae174ea1af3f9c727a5ff5d2ff02732f18d8.zip

fix: bindkey works, plugin loading doesnt die

Diffstat (limited to 'zuwu.zsh')
-rwxr-xr-xzuwu.zsh10
1 files changed, 5 insertions, 5 deletions
diff --git a/zuwu.zsh b/zuwu.zsh
index d808028..14dce54 100755
--- a/zuwu.zsh
+++ b/zuwu.zsh
@@ -114,7 +114,7 @@ reloadopt() {
fi
if "$DELETE_CHAR"; then
bindkey "^[[3~" delete-char
- bindkey "^[[3;2~" delete-wo0rd
+ bindkey "^[[3;2~" delete-word
else
bindkey -r "^[[3~"
bindkey -r "^[[3;2~"
@@ -152,19 +152,19 @@ _each_share_dir() {
# Plugins
# > ZSH Autosuggestions
-for f in "$(_each_share_dir zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh zsh-autosuggestions/zsh-autosuggestions.zsh)"; do
+while IFS= read -r f; do
if [[ -f "$f" ]]; then
source "$f"
break
fi
-done
+done <<< "$(_each_share_dir zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh zsh-autosuggestions/zsh-autosuggestions.zsh)"
# > ZSH Syntax Highlighting
-for f in "$(_each_share_dir zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh)"; do
+while IFS= read -r f; do
if [[ -f "$f" ]]; then
source "$f"
break
fi
-done
+done <<< "$(_each_share_dir zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh)"
# Cute Prompting
if [[ -f ~/.config/starship.toml ]]; then