Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Suggestion: Consider shorter standard names for Alias.Function, and Variable PSDrives

Reply
 
Old 06-20-2006   #1 (permalink)
Alex K. Angelopoulos [MVP]


 
 

Suggestion: Consider shorter standard names for Alias.Function, and Variable PSDrives

https://connect.microsoft.com/feedba...0584&SiteID=99

We currently have lengthy names for "built in" PSDrives, making them harder
to type. In the non-FS list of pre-mapped PSDrives shown at bottom, you can
see that abbreviated names are used for two "single-drive" provider drives,
Env: and cert:. For the registry drives, the well-known 4-letter names are
used for drives rooted in base hives.

I don't think there's any question that using shorter names for the
Certificate and Environment stores was wise. They are clearly the longest
named providers (11 chars each).

Due to their wide use, I suggest that the Alias, Function, and Variable
PSDrives also have shorter names. This helps with ergonomics.

Alias should probably be al: (from the standard truncated form of Alias).

Function should probably be fn: (simple, suggestive to people who have taken
math, and a likely abbreviation if we ever have Function cmdlets).

Variable should probably be var: (recognizable; used instead of the standard
abbreviation 'v' since v might be a physical drive).



Name Provider Root
---- -------- ----
Alias Alias
cert Certificate \
Env Environment
Function Function
HKCU Registry HKEY_CURRENT_USER
HKLM Registry HKEY_LOCAL_MACHINE
Variable Variable




My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Using a variable from within a function PowerShell
Suggestion: New special variable for pipeline enumeration index PowerShell
setting a function for alias PowerShell
How To: Create Dynamic Variable Names in Scripts PowerShell
Suggestion: Add the 6 missing standard aliases to PowerShell PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46