[Bug]: Error when loading oh-my-zsh configuration plugins
Bug Report
Description
In a recent installation when installing rice, it fails to load the plugins 'zsh-256color', 'zsh-autosuggestions' and 'zsh-syntax-highlighting'.
Screenshots
Environment
- Linux Distro: [Archcraft x86_64]
- Linux Version, output of
Linux virtual 6.7.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 23 Feb 2024 16:31:48 +0000 x86_64 GNU/Linux: - Hyprland Version, output of `Hyprland, built from branch HEAD at commit 84ab8d11e8951a6551d1e1bf87796a8589da6d47 (props: bump ver to 0.35.0). Date: Mon Feb 5 01:59:02 2024 Tag: v0.35.0
flags: (if any)`
- Installation Environment: [Resolution : 1366x768 , CPU : AMD Ryzen 3 3250U with Radeon Graphics (4) @ 2.600GHz , GPU : AMD ATI Radeon Vega Series / Radeon Vega Mobile Series, GPU Driver : amdgpu ]
Additional Information
at the end of the installation of rice, once initialized for the first time, when running the terminal kitty shows those failures in the plugins with oh-my-zsh that are not loaded, when running the terminal again, the same message appears.
navigate to
~/Hyprdots/Scripts
then run
bash -x ./restore_shl.sh what is the output (added the bash -x for debugging)
after that provide also the output for this
cat ~/.zshrc | grep plugin
when executing
bash -x ./restore_shl.shinside the directory~/Hyprdots/Scripts, I get the following output:
+ source global_fn.sh
++ set -e
+++++ realpath ./restore_shl.sh
++++ dirname /home/gemism/Hyprdots/Scripts/restore_shl.sh
+++ dirname /home/gemism/Hyprdots/Scripts
++ CloneDir=/home/gemism/Hyprdots
+ '[' 0 -ne 0 ']'
+ myShell=
+ '[' -z '' ']'
+ pkg_installed zsh
+ local PkgIn=zsh
+ pacman -Qi zsh
+ return 0
+ myShell=zsh
+ echo -e '\033[0;32m[SHELL]\033[0m detected // zsh'
[SHELL] detected // zsh
+ pkg_installed zsh
+ local PkgIn=zsh
+ pacman -Qi zsh
+ return 0
+ pkg_installed oh-my-zsh-git
+ local PkgIn=oh-my-zsh-git
+ pacman -Qi oh-my-zsh-git
+ return 0
+ Zsh_rc=/home/gemism/.zshrc
+ Zsh_Path=/usr/share/oh-my-zsh
+ Zsh_Plugins=/usr/share/oh-my-zsh/custom/plugins
+ Fix_Completion=
+ read r_plugin
++ cut -d '#' -f 1 restore_zsh.lst
++ sed 's/ //g'
++ echo git
++ awk -F / '{print $NF}'
+ z_plugin=git
+ '[' git == http ']'
+ '[' git == zsh-completions ']'
++ echo git
+ w_plugin=git
+ read r_plugin
++ echo sudo
++ awk -F / '{print $NF}'
+ z_plugin=sudo
+ '[' sudo == http ']'
+ '[' sudo == zsh-completions ']'
++ echo git sudo
+ w_plugin='git sudo'
+ read r_plugin
++ echo
++ awk -F / '{print $NF}'
+ z_plugin=
+ '[' '' == http ']'
+ '[' '' == zsh-completions ']'
++ echo git sudo
+ w_plugin='git sudo'
+ read r_plugin
++ echo
++ awk -F / '{print $NF}'
+ z_plugin=
+ '[' '' == http ']'
+ '[' '' == zsh-completions ']'
++ echo git sudo
+ w_plugin='git sudo'
+ read r_plugin
++ echo https://github.com/chrissicool/zsh-256color
++ awk -F / '{print $NF}'
+ z_plugin=zsh-256color
+ '[' http == http ']'
+ '[' '!' -d /usr/share/oh-my-zsh/custom/plugins/zsh-256color ']'
+ '[' zsh-256color == zsh-completions ']'
++ echo git sudo zsh-256color
+ w_plugin='git sudo zsh-256color'
+ read r_plugin
++ echo
++ awk -F / '{print $NF}'
+ z_plugin=
+ '[' '' == http ']'
+ '[' '' == zsh-completions ']'
++ echo git sudo zsh-256color
+ w_plugin='git sudo zsh-256color'
+ read r_plugin
++ echo https://github.com/zsh-users/zsh-autosuggestions
++ awk -F / '{print $NF}'
+ z_plugin=zsh-autosuggestions
+ '[' http == http ']'
+ '[' '!' -d /usr/share/oh-my-zsh/custom/plugins/zsh-autosuggestions ']'
+ '[' zsh-autosuggestions == zsh-completions ']'
++ echo git sudo zsh-256color zsh-autosuggestions
+ w_plugin='git sudo zsh-256color zsh-autosuggestions'
+ read r_plugin
++ echo https://github.com/zsh-users/zsh-syntax-highlighting
++ awk -F / '{print $NF}'
+ z_plugin=zsh-syntax-highlighting
+ '[' http == http ']'
+ '[' '!' -d /usr/share/oh-my-zsh/custom/plugins/zsh-syntax-highlighting ']'
+ '[' zsh-syntax-highlighting == zsh-completions ']'
++ echo git sudo zsh-256color zsh-autosuggestions zsh-syntax-highlighting
+ w_plugin='git sudo zsh-256color zsh-autosuggestions zsh-syntax-highlighting'
+ read r_plugin
+ echo 'intalling zsh plugins (git sudo zsh-256color zsh-autosuggestions zsh-syntax-highlighting)'
intalling zsh plugins (git sudo zsh-256color zsh-autosuggestions zsh-syntax-highlighting)
+ sed -i '/^plugins=/c\plugins=(git sudo zsh-256color zsh-autosuggestions zsh-syntax-highlighting)' /home/gemism/.zshrc
++ grep /gemism: /etc/passwd
++ awk -F / '{print $NF}'
+ [[ zsh != \z\s\h ]]
+ echo -e '\033[0;33m[SKIP]\033[0m zsh is already configured...'
[SKIP] zsh is already configured...
finally with the departure of
cat ~/.zshrc | grep pluginI get the following:
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git sudo zsh-256color zsh-autosuggestions zsh-syntax-highlighting)
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
Could you close as solved if you no longer have this issue. Thank you @gherrada22