Creates a new psdrive, and moves location to it.
Set-PSUDrive [-Name] <Object> [[-Root] <String>] [<CommonParameters>]
Will create a PSDrive, by default in the current path. This allows swiftly reducing path length. Then it will immediately change location to the new drive.
Sets the current path as drive “pr” and sets it as the current location.
What to name the new PSDrive?
Type: Object Parameter Sets: (All) Aliases: Required: True Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False
Default: . The root of the new drive.
Type: String Parameter Sets: (All) Aliases: Required: False Position: 2 Default value: . Accept pipeline input: False Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: Donovan Brown Source: http://donovanbrown.com/post/Shorten-your-PowerShell-directory-path
Thank you for sharing and granting permission to use this convenience :)