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

Allow loading pryrc in other location even if XDG env is set #2184

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ttych
Copy link

@ttych ttych commented Apr 16, 2021

Purpose of this PR is to allow loading pryrc in ~/.pryrc even if XDG_CONFIG_HOME is set.

On Linux environment, when loading graphically, XDG environment is set.
On the same Linux environment when loading through ssh, XDG environment is not set.

So since pry is not a graphical tool, make it dependent to X environment may be a bit restrictive ?

This change a little bit the behavior for default rc,
so when XDG environment is set (for X environment),
but the X "standard" path are not used for pry which is not a graphical tool (for the moment ?),
it allows a fallback to ~/.pryrc.

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.

None yet

1 participant