mylinuxforwork / dotfiles

The ML4W Dotfiles for Hyprland - An advanced and full-featured configuration for the dynamic tiling window manager Hyprland including an easy to use installation script for Arch based Linux distributions.
GNU General Public License v3.0
1.15k stars 87 forks source link

[FEATURE] Allow for oh-my-zsh plugin override #383

Open PrymalInstynct opened 3 weeks ago

PrymalInstynct commented 3 weeks ago

Is your feature request related to a problem? Please describe. When I updated the version of ML4W dotfiles it overroad the additional oh-my-zsh plugins that I had enabled.

Describe the solution you'd like Oh-my-zsh comes with so many native plugins as well as a number of community created plugins. Allow ML4W dotfile users to select which plugins they would like to enable in their zshrc config.

Perhaps you can scrape the contents of ~/.oh-my-zsh/plugins and ~/.oh-my-zsh/custom/plugins and provide that a list of selectable options in the setup script.

mylinuxforwork commented 3 weeks ago

Thanks for this request. You can create your own custom file in .config/zshrc and configure your plugins there. Additional files are protected from updates.

PrymalInstynct commented 3 weeks ago

I am pretty sure you cannot initialize oh-my-zsh plugins twice.

For example, if I add the helm plugin to the list in 20-customization I will end up with the following aliases being created by the plugin.

hse='helm search'
hun='helm uninstall'
hup='helm upgrade'

However, if I add that plugin to a new file 21-plugins the aliases are not created during the shell initialization process.

# -----------------------------------------------------
# additional oh-myzsh plugins
# -----------------------------------------------------
plugins=(
    helm
)