-
Notifications
You must be signed in to change notification settings - Fork 133
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 a few global aliases and vars like ZIBIN, ZIPLUGS and others. #378
Conversation
The user can use them in 3 ways: $ cd ZIBIN $ cd $ZIBIN $ cd ~ZIBIN $ cd ZPFX
Would probably also be nice to add some hints that this is possible into the docs...? |
I dislike global alias due to contamination of the global namespace and do not want to include them in my Also, I don't feel that they need to be global alias, as they seem to be simply a short hand for environment variables. |
Yeah, that's a good point. They're also simple enough that you can add these aliases on your own. I'd be alright with reverting this diff and making a section in the wiki for this. Thoughts, @psprint? |
Please revert this. This should be a separate plugin, not part of zinit. |
The plugin would consist of only 2 lines and would limit discoverability of such an useful hints.. how many times one felt boring and repelled by tab completing The global aliases are limited use because Also, the named directories are not completed so a zstyle could be provided for it? Update: when using |
@psprint Are environment variables also really needed in the zinit core? If it is really necessary, it should be an independent plugin. |
@Ryooooooga: The variables have been removed in #381. It's quite an argument that Zinit has been designed to not use variables if possible. I've added them because it's really cumbersome to constantly banging tab in order to get to |
named directories too |
@Ryooooooga Why? Isn't it a convenient way of adding shorthands, that isn't normally polluted? Doesn't it hurt every time one want's to get to a plugin dir like What exactly is the objection, is it namespace pollution? If yes, then I think that it's isn't a problem, because:
so why not use it? |
|
I disagree. It's the same as |
So why should it be included in zinit itself? |
IMO, because:
I wonder what's the actual problem here? Because I think that much more users would be grateful for protecting against constant 6 tab hitting, than some personal issue with Zinit providing its own directories on its own… |
If zinit is going to be oh-my-zsh with lots of "something useful" in it, there is no reason to use zinit. |
This is a relief also for developers, not only to users. It's a single line of code, nothing bloated as oh-my-zsh. Where did I write "something useful"? |
Are you sure that it's not rather a relief for developers than for users? I've been using (and just using, not developing) zinit for over two years now and almost never feel the urge to As a developer (of other tools), I can relate to @Ryooooooga: I consider polluting the global namespace bad practice and would like to challenge every reason to do that. Surely, there are sometimes good reasons, but I don't see one here. If you want happy users that adopt your tool quickly, it's best to focus on their needs, not yours. |
@psprint I'd suggest to not fully disregard this, but rather keep it as a suggestion and let the user base decide (via emoji votes) whether they want to have this too :) And in the meantime (as I've understood), you're free to set it for yourself in your own |
No global vars, see #381. |
Oh, sorry, I guess I didn't get the whole picture then. I just curiously opened this thread when I noted the merged revert, wanting to know what's going on and if there was a serious incident (luckily there wasn't). When I skimmed over the comments I just thought that the perspective of an actual user might be helpful, but I think I've said more than enough, so I'll zone out again and let you and the devs carry on :) |
🎉 This PR is included in version 3.8.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
I've started a new PR for the global aliases because I haven't been using a separate branch in #371.
The user can use them in 3 ways:
$ cd ZIBIN
$ cd $ZIBIN
$ cd ~ZIBIN
$ cd ZPFX
Description
Motivation and Context
Related Issue(s)
Usage examples
How Has This Been Tested?
Types of changes
Checklist: