Replies: 12 comments
-
I'd be fine with removing all but the most common ones (add, status, branch etc.) and letting users define their own after that. Having bundles is also a good idea, but how would installing of alias bundles be managed? |
Beta Was this translation helpful? Give feedback.
-
My thinking is maybe adding some configuration variables, like Another option would be to have multiple functions that define such aliases, and again, the user would call them in their zshrc files. I'm open to other suggestions and I'll think about other options we may have. But yes, many aliases could be purged from the main plugin and leave only the absolute necessary. |
Beta Was this translation helpful? Give feedback.
-
I was getting rather annoyed by all kinds of "random" aliases defined on my system by various oh-my-zsh plugins, so I went ahead and separated the aliases from the plugins for the git and golang plugin at least. See here: This allows you to load aliases separately in your .zshrc: |
Beta Was this translation helpful? Give feedback.
-
I'd prefer just segregating them into multiple plugins based on their usage. (Just my 2 ¢) |
Beta Was this translation helpful? Give feedback.
-
Any solution to remove those useless aliases but keeping plugins ? |
Beta Was this translation helpful? Give feedback.
-
As I said in #5115. The solution is easy. oh-my-zsh should provide a switch to disable the aliases. No need to remove them. |
Beta Was this translation helpful? Give feedback.
-
There's also some dangerous commands that should not be aliased.
|
Beta Was this translation helpful? Give feedback.
-
Everybody wants their own list of aliases, but that hinders portability. I stopped using all aliases years ago because I kept being nearly disabled when I was trying to help someone else on their computer. I would spend more time trying to remember the verbose command than actually helping. And now there are dotfile repos, but before that, getting a new computer was a nightmare instead of something exciting because I had to find all the places that I had made modifications to my system. It would be really nice (instead of hundreds of generic aliases across scores of plugins) if omz had a utility for quickly adding aliases to a dotfiles repo and a simple one-line command to switch to zsh, install (temporarily?) omz, and load aliases (and everything else) from your dotfile repo. This could be implemented as a brew, a node package, and maybe one or two other small install scripts that accept your github/bitbucket repo name and it does the rest. If we do that, we could remove all the aliases and make moving to a new machine easier. |
Beta Was this translation helpful? Give feedback.
-
I learned many git commands and found some better practice in the OMZ git aliases. For me, these aliases are like a collection of best practices. |
Beta Was this translation helpful? Give feedback.
-
One of the problems I've had is how to learn the aliases? Any thought about a |
Beta Was this translation helpful? Give feedback.
-
I'm using alias tips and |
Beta Was this translation helpful? Give feedback.
-
Thank you @ouuan that plugin is awesome! |
Beta Was this translation helpful? Give feedback.
-
This is a recurring sentiment:
https://twitter.com/RaymondGulbr/status/808964779121475585:
#3288 (comment)
#3288 (comment)
#3682 (comment)
This has many harmful side-effects, mainly added commands (some of which are destructive and at one keystroke). Some aliases also might override installed commands, which then need to be selectively disabled or renamed. There is #4585 pending but no closer to being merged.
Meanwhile, more and more people want to add their own little alias, without thinking about the added benefits or costs to the common interest.
One possible fix for that is having bundles of aliases for specific workflows, such that if certain git commands are used together very frequently we alias them and group these aliases into specific functions or if branches. For example, if one does not use commit signing regularly, not having that be there by default.
This is a discussion issue and it is in a very early stage, so we're quite far from a PR fixing this.
What other solutions can you think of?
Beta Was this translation helpful? Give feedback.
All reactions