-
-
Notifications
You must be signed in to change notification settings - Fork 25.7k
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
Add option to disable ohmyzsh's aliases #9414
Comments
Are you sure these are from oh-my-zsh, and not from your distributions /etc/profile or similar? |
@MrAureliusR yes i am sure these are from oh-my-zsh, try it yourself |
Can you show your list of aliases? Mine isn't showing this. |
You can add an unset at the end of your
|
This is a slightly similar situation as this PR for fd, #9162 |
Closes ohmyzsh#9414, resolves ohmyzsh#8344, closes ohmyzsh#7328, closes ohmyzsh#6630, resolves ohmyzsh#8933, resolves ohmyzsh#8015, closes ohmyzsh#9621
There's a proposal for a way to turn off aliases in #10644. Please have a look and add your feedback. Thanks! |
I found this conversation because my own I also find |
I add an unalias above my own that conflict ( usually my own functions vs OMZ aliases) instead of commenting out anything in OMZ as that requires future maintenance. |
Another option is to add the aliases after OMZ has been sourced. The aliases you mention in particular are coming from
|
I found |
Is your feature request related to a problem? Please describe.
Yes. I don't want aliases i never asked for. When I do
alias
i see that there are aliases likeegrep='egrep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}'
, which I have no idea about.Describe the solution you'd like
It would be nice if I could set a variable like OMZ_ALIASES=false, so that i can disable aliases, or a even better solution would be to maintain the list of aliases in a separate file, so that I can comment out the ones if don't want//
Describe alternatives you've considered
I have tried to manually comment out the aliases i don't want by grep-ing, but that is tiresome
Additional context
I am not talking about the git aliases, which are rather helpful. I am talking about the aliases that are sourced even when
plugins=()
Related Issues
Unwanted aliases can lead to people wondering what they are doing wrong when they aren't doing anything wrong, and its the alias they never knew they had causing the problem.
The text was updated successfully, but these errors were encountered: