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

Support '~' in config #44

Closed
SherLock707 opened this issue May 12, 2024 · 2 comments
Closed

Support '~' in config #44

SherLock707 opened this issue May 12, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@SherLock707
Copy link

[Enhancement]

Can you please add support for ~ expansion in config read?

image

You can check if path string contains ~ , if so os.path.expanduser(path)

While writing back to the config you can override the ~ with actual home path.

Just trying to make if username independent when installing dots on fresh install..

@anufrievroman
Copy link
Owner

I didn't bother to do it because initially, the user were not supposed to mess with config file as it is updated by the program. But I see that people do it anyway :D So, I'll add the path expansion on occasion.

@anufrievroman anufrievroman added the enhancement New feature or request label May 13, 2024
@anufrievroman
Copy link
Owner

Implemented in 721cbe7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants