Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

m-rey
Copy link
Contributor

@m-rey m-rey commented Oct 2, 2020

The location of .zshrc is not always $HOME/.zshrc. The environment variable ZDOTDIR defines in which directory .zshrc is in. Thus this contribution uses parameter expansion to check if ZDOTDIR is set and in that case uses that directory to locate .zshrc. If ZDOTDIR is not set, $HOME is used as fallback directory.

The location of `.zshrc` is not always `$HOME/.zshrc`. The environment variable `ZDOTDIR` defines in which directory `.zshrc` is in. Thus this checks if `ZDOTDIR` is set and in that case uses that directory to locate `.zshrc`. If `ZDOTDIR` is not set, `$HOME` is used as fallback directory.
@nobu
Copy link
Member

nobu commented Oct 2, 2020

Could you send this to https://github.com/ruby/optparse ?

@m-rey
Copy link
Contributor Author

m-rey commented Oct 3, 2020

Sure, I can try to!
However, the URL you mentioned doesn't work. It's just shows a 404 error on my side.

Am I missing something?

@nobu
Copy link
Member

nobu commented Oct 3, 2020

It seems private, @hsbt may be able to switch it.

@hsbt
Copy link
Member

hsbt commented Oct 3, 2020

I made it to public.

@hsbt
Copy link
Member

hsbt commented Dec 2, 2020

Filed at ruby/optparse#1

@hsbt hsbt closed this Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants