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

Expand user home when using tilde #16

Merged
merged 1 commit into from
Aug 9, 2022
Merged

Expand user home when using tilde #16

merged 1 commit into from
Aug 9, 2022

Conversation

gazorby
Copy link
Owner

@gazorby gazorby commented Aug 9, 2022

Fixes #14

@gazorby gazorby merged commit c9d4b5d into main Aug 9, 2022
Comment on lines +54 to +55
if string match --quiet '~*' -- $token
set -a result (string join -- "" "~" (string sub --start 2 -- $token | string escape))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix accounts for 99% use cases, but it doesn't completely fix the problem, for example ~root won't work.

@gazorby gazorby mentioned this pull request Aug 15, 2022
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.

expand user home
2 participants