zdharma-continuum / zinit

🌻 Flexible and fast ZSH plugin manager
MIT License
2.89k stars 125 forks source link

add an option to disable aliases #452

Closed Ryooooooga closed 1 year ago

Ryooooooga commented 1 year ago

Description

Add an option to disable aliases such as zi and zplg.

Motivation and Context

There is a motivation to minimize unnecessary settings.

Especially since zinit has been renamed from zplugin for three years now, zplg is unnecessary for almost everyone.

Related Issue(s)

N/A

Usage examples

# .zshrc
ZINIT[NO_ALIASES]=1
source "${ZINIT[HOME_DIR]}/bin/zinit.zsh"

How Has This Been Tested?

Rewrote ${ZINIT[HOME_DIR]}/bin/zinit.zsh and added ZINIT[NO_ALIASES]=1 before source.

Types of changes

Checklist:

vladdoster commented 1 year ago

@Ryooooooga,

Thanks for adding this. Can you add this variable to the README.md?

https://github.com/zdharma-continuum/zinit#customizing-paths

vladdoster commented 1 year ago

@Ryooooooga Your fork is out of date. Please rebase zdharma-continuum/zinit main branch onto your branch.

Ryooooooga commented 1 year ago

@vladdoster I rebased and added the doc.

pschmitt commented 1 year ago

Thanks for updating, merging!