alias - Multiple values for a powershell alais -
i want create alias display home directory , of it's sub-directories.
the alias can create is- new-alias -name myd -value get-childitem
but need display both home directory , sub directories using 1 command. can assign multiple values alias?
you should create function , that:
function myd {get-childitem -recurse } then alias if wish:
new-alias -name myname -value myd you can directly call "myd" also.
Comments
Post a Comment