diff options
author | 2025-01-03 04:08:25 +0100 | |
---|---|---|
committer | 2025-01-03 04:08:25 +0100 | |
commit | 5bb8ae174ea1af3f9c727a5ff5d2ff02732f18d8 (patch) | |
tree | 2565be1b09137996e856f36984b9fd78eb88b0b5 /zuwu.zsh | |
parent | b70d5b3ee4cda01646406d4d1fe149dc3d41b308 (diff) | |
download | zuwu-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-x | zuwu.zsh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |