I know that I can create a variable representing the path to the folder in my profile. For instance,
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
Is there an easy way to create an alias in a directory in PowerShell?
Create an alias
PS> Create-FolderAlias -name $foo -path "C:\Program Files"
Create an alias based on another alias
PS> Create-FolderAlias -name $bar -path $foo + "\Microsoft"
Use an alias as expected
PS> cd $foo
It would be nice if these aliases persisted between sessions.
craig source share