Skip to content

Tilde expansion? #15263

Answered by rkeithhill
BurtHarris asked this question in Q&A
Apr 17, 2021 · 3 comments · 8 replies
Discussion options

You must be logged in to vote

For built-in commands, PowerShell already supports this. For native applications, there's an an experimental feature to support this. I forget which version it shipped in but it's in the latest stable 7.1.3. Enable the feature like so:

Enable-ExperimentalFeature PSNativePSPathResolution

You'll need to restart PowerShell for this change to take affect. After enabling this feature, you can then do this and it will work:

notepad ~\Documents\PowerShell\profile.ps1

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@BurtHarris
Comment options

@rkeithhill
Comment options

@rkeithhill
Comment options

@ninmonkey
Comment options

@GMZwinge
Comment options

Answer selected by BurtHarris
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants