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 home-relative paths by expanding ~ #8039

Open
jaraco opened this issue Oct 2, 2024 · 0 comments
Open

Support home-relative paths by expanding ~ #8039

jaraco opened this issue Oct 2, 2024 · 0 comments

Comments

@jaraco
Copy link

jaraco commented Oct 2, 2024

Is your feature request related to a problem? Please describe.
I'd like to be able to share my hyper config without having to customize it to each host, but due to corporate restrictions, my username must be different on these different hosts. Therefore, the shell configuration variable must necessarily be different on each machine. For example:

    shell: '\\Users\\jaraco\\.local\\bin\\xonsh.exe',
    shell: '\\Users\\jaraco2\\.local\\bin\\xonsh.exe',

If the hyper configuration would allow for home-relative paths, it would make it possible to declare this config in one way on both hosts:

    shell: '~\\.local\\bin\\xonsh.exe',

Describe the solution you'd like

For any config item that references a path, allow the path to contain ~ and expand it to the user's home directory.

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

1 participant