8000 Use XDG_CONFIG_HOME if available by MrDowntempo · Pull Request #369 · xwmx/nb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use XDG_CONFIG_HOME if available #369

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

MrDowntempo
Copy link

Be warned. This is my first pull request EVAR. I'm not much of a coder, and I don't write my own bash scripts. I've tested this and it seeeems to work as a clean install, but I doubt it'll handle existing installs elegantly, if at all. Also this script is huuuge so I could've easily overlooked another place that needs an edit. If I've not gone about this the correct way, lemme know I'll try my best to do better next time.

This change should check if XDG_CONFIG_HOME exists, and if it does, create an nb subdirectoy in there for your .nbrc file (by way of the _ME variable)

I find having .nbrc in my home directory icky and want to tuck it away where it belongs. If this works, I'll try making XDG_STATE_HOME the default parent of the default notebook directory next.

This doesn't handle anything fancy like the preference-ordered XDG_CONFIG_DIRS variable.

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
0