Skip to content

Expand user home when using tilde#16

Merged
gazorby merged 1 commit intomainfrom
gazorby/issue14
Aug 9, 2022
Merged

Expand user home when using tilde#16
gazorby merged 1 commit intomainfrom
gazorby/issue14

Conversation

@gazorby
Copy link
Copy Markdown
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
Copy Markdown
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