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

Using ~ (home dir) in config paths on Windows #30

Open
riotrah opened this issue Apr 1, 2024 · 2 comments
Open

Using ~ (home dir) in config paths on Windows #30

riotrah opened this issue Apr 1, 2024 · 2 comments

Comments

@riotrah
Copy link

riotrah commented Apr 1, 2024

I'm not sure how useful this would actually be, but in general my instinct when setting up new cli tools is to have them save their config in ~\.config, bins in ~\.local\bin etc even in Windows, especially given wider support for ~ these days.

I do this because I alternate between mac, windows and ubuntu (wsl) all the time, which don't have the same paths for the home dir, but try to standardize my cli setup between them via chezmoi (dotfiles manager). Further, on my work Mac, I cannot change my username, and it is different from my personal PC usernames.

I tried out this instinct by setting the stew paths to the above, but on windows, stew warns me that the bin path isn't available in my PATH, which I can confirm indeed is.

I can just dotfiles-track 2 stew config files, but I guess I would prefer one, especially if the stew configuration options expand more in the future.

@marwanhawari
Copy link
Owner

Hmm, unfortunately I don't have a Windows machine to develop on so I won't be able to reproduce this issue for now. If you're comfortable opening a PR, I would be happy to review it!

You could start looking in this file: lib/config.go

@riotrah
Copy link
Author

riotrah commented Apr 7, 2024

I don't know go but might be fun to take a look at!

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

No branches or pull requests

2 participants