Skip to content

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

Open
ttych wants to merge 1 commit into
pry:masterfrom
ttych:pryrc_xdg_fallback
Open

Allow loading pryrc in other location even if XDG env is set#2184
ttych wants to merge 1 commit into
pry:masterfrom
ttych:pryrc_xdg_fallback

Conversation

@ttych

@ttych ttych commented Apr 16, 2021

Copy link
Copy Markdown

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.

@ttych ttych force-pushed the pryrc_xdg_fallback branch from 3c36797 to 9560d1f Compare April 16, 2021 20:50
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.

1 participant