Skip to content
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

Externalize $HOME/.tilde and make it configurable #165

Closed
indrajitr opened this issue May 5, 2012 · 7 comments
Closed

Externalize $HOME/.tilde and make it configurable #165

indrajitr opened this issue May 5, 2012 · 7 comments
Labels

Comments

@indrajitr
Copy link
Collaborator

$HOME/.tilde is forced into $infopath, $manpath and $path currently. The intent is nice, but it would be even nicer not to hard-code $HOME/.tilde and expose it as configurable property (with $HOME/.tilde as the default) in templates/zshrc.

This way one can just override in one place and have the same effect :)

@sorin-ionescu
Copy link
Owner

My OMZ is intended to be edited in place. I do not wish to make the zshrc template massive. I use ~/.tilde. Some may use ~/.local. Others may just use ~/bin, ~/etc. I won't assume a particular setup nor enforce one.

Perhaps, I'll remove ~/.tilde and put it at the bottom of my zshrc. I have also considered moving the environment module into templates/zshenv.

@indrajitr
Copy link
Collaborator Author

I appreciate the overall approach -- these would be nice improvements indeed.

@sorin-ionescu
Copy link
Owner

Which one?

@indrajitr
Copy link
Collaborator Author

Either of:
a. Removing ~/.tilde from default module init (as it is now) and putting it to .zshrc
b. Bringing environment related stuff under templates/zshenv

One way or the other, they become template/foo candidates -- either being part of user modifiable template/zshrc or being part of user modifiable template/zenv.

This also brings in some sanity in terms of how one can group his/her local zsh behaviors by splitting stuff in multiple files (.zshrc, .zshenv etc.) instead of one giant .zshrc.

@indrajitr
Copy link
Collaborator Author

Also, you'll keep the idea of templates/zshenv alive I hope. Having a default template for ~/.zshenv would always be nice :)

@sorin-ionescu
Copy link
Owner

Yes, see #171. I need $PATH before zshrc, not after. It's not working at the bottom of zshrc.

@indrajitr
Copy link
Collaborator Author

Rightly, indeed :)

lildude pushed a commit to lildude/prezto that referenced this issue Jan 12, 2014
kodelint pushed a commit to kodelint/prezto that referenced this issue Nov 15, 2016
RIT80 pushed a commit to RIT80/prezto that referenced this issue Jan 25, 2022
RIT80 added a commit to RIT80/prezto that referenced this issue Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants