Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: cloned .oh-my-zsh/ directory seems to lack the plugins #2072

Open
Zaphkiell opened this issue Dec 22, 2024 · 5 comments
Open

[Bug]: cloned .oh-my-zsh/ directory seems to lack the plugins #2072

Zaphkiell opened this issue Dec 22, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Zaphkiell
Copy link

Bug Report

Description

It seems that both plugins ./oh-my-zsh/plugins and ./oh-my-zsh/custom plugins folders are empty.

I've ran bash -x ./restore_shl.sh and cat from #974 , the output is below
The command restores the ./oh-my-zsh/plugins but it seems that the three below are sourced from /custom/plugins which stays empty
It's not a big deal, I can just source it myself but I wonder if that's intended behavior?

I apologize in advance if my issue is trivial due to my inadequate Linux education :(

Screenshots

image

Environment

  • Linux Distro: Arch Linux
  • Linux Version 6.12.4-arch1-1 Symlinks #1 SMP PREEMPT_DYNAMIC Mon, 09 Dec 2024 14:31:57 +0000 x86_64 GNU/Linux
  • Hyprland Version Hyprland 0.45.2
  • Installation Environment: Hardware

Additional Information

bash -x ./restore_shl.sh

+++ realpath ./restore_shl.sh
++ dirname /home/zaphkiel/HyDE/Scripts/restore_shl.sh
+ scrDir=/home/zaphkiel/HyDE/Scripts
+ source /home/zaphkiel/HyDE/Scripts/global_fn.sh
++ set -e
++++ realpath ./restore_shl.sh
+++ dirname /home/zaphkiel/HyDE/Scripts/restore_shl.sh
++ scrDir=/home/zaphkiel/HyDE/Scripts
+++ dirname /home/zaphkiel/HyDE/Scripts
++ cloneDir=/home/zaphkiel/HyDE
++ confDir=/home/zaphkiel/.config
++ cacheDir=/home/zaphkiel/.cache/hyde
++ aurList=(yay paru)
++ shlList=(zsh fish)
+ '[' 0 -ne 0 ']'
+ chk_list myShell zsh fish
+ vrType=myShell
+ inList=('zsh' 'fish')
+ local inList
+ for pkg in "${inList[@]}"
+ pkg_installed zsh
+ local PkgIn=zsh
+ pacman -Qi zsh
+ return 0
+ printf -v myShell %s zsh
+ export myShell
+ return 0
+ 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/zaphkiel/.zshrc
+ Zsh_Path=/usr/share/oh-my-zsh
+ Zsh_Plugins=/usr/share/oh-my-zsh/custom/plugins
+ Fix_Completion=
+ read r_plugin
++ sed 's/ //g'
++ cut -d '#' -f 1 /home/zaphkiel/HyDE/Scripts/restore_zsh.lst
++ echo git
++ awk -F / '{print $NF}'
+ z_plugin=git
+ '[' git == http ']'
+ '[' git == zsh-completions ']'
+ '[' -z git ']'
+ w_plugin+=' git'
+ read r_plugin
++ echo sudo
++ awk -F / '{print $NF}'
+ z_plugin=sudo
+ '[' sudo == http ']'
+ '[' sudo == zsh-completions ']'
+ '[' -z sudo ']'
+ w_plugin+=' sudo'
+ read r_plugin
++ echo ''
++ awk -F / '{print $NF}'
+ z_plugin=
+ '[' '' == http ']'
+ '[' '' == zsh-completions ']'
+ '[' -z '' ']'
+ read r_plugin
++ echo ''
++ awk -F / '{print $NF}'
+ z_plugin=
+ '[' '' == http ']'
+ '[' '' == zsh-completions ']'
+ '[' -z '' ']'
+ 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 ']'
+ '[' -z zsh-256color ']'
+ w_plugin+=' zsh-256color'
+ read r_plugin
++ echo ''
++ awk -F / '{print $NF}'
+ z_plugin=
+ '[' '' == http ']'
+ '[' '' == zsh-completions ']'
+ '[' -z '' ']'
+ 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 ']'
+ '[' -z zsh-autosuggestions ']'
+ w_plugin+=' 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 ']'
+ '[' -z zsh-syntax-highlighting ']'
+ w_plugin+=' zsh-syntax-highlighting'
+ read r_plugin
+ echo -e '\033[0;32m[SHELL]\033[0m installing plugins ( git sudo zsh-256color zsh-autosuggestions zsh-syntax-highlighting )'
[SHELL] installing 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/zaphkiel/.zshrc
++ grep /zaphkiel: /etc/passwd
++ awk -F / '{print $NF}'
+ [[ zsh != \z\s\h ]]
+ echo -e '\033[0;33m[SKIP]\033[0m zsh is already set as shell...'
[SKIP] zsh is already set as shell...

cat ~/.zshrc | grep plugin

# 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
@Zaphkiell Zaphkiell added the bug Something isn't working label Dec 22, 2024
@kRHYME7
Copy link
Collaborator

kRHYME7 commented Dec 22, 2024

do you have the dependencies installed for the zsh plugins?

by any chance did you choose zsh on install.sh command?

@Zaphkiell
Copy link
Author

Zaphkiell commented Dec 22, 2024

I think I did (choose zsh, that is).
I think I already had oh my zsh when I found hyprdots too, so there is that.
I am not aware of any dependencies for those plugins, no. The install was mostly clean apart from basics and oh my zsh itself.

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Dec 22, 2024

./oh-my-zsh/plugins

are you assuming that the files are stored in $HOME? the plugin system used for hyprdots is installed from AUR so files to be sourced will be in /usr/

somewhere /usr/share/oh-my-zsh/custom/plugins/

@Zaphkiell
Copy link
Author

Zaphkiell commented Dec 22, 2024

oh, I see. I think something went wrong on the configuration side. I am pretty sure oh-my-zsh uses the default cloned directory /.oh-my-zsh. Is there a way to change that?

The dir is indeed where you pointed out.

@Zaphkiell
Copy link
Author

Zaphkiell commented Dec 22, 2024

I've changed the .zshrc to export ZSH="/usr/share/oh-my-zsh"
As far as I can tell, it works. Let me know if I did the right thing and that would be enough. I'll close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants