bash aliases equivalent for powershell?

Posted by Santosh Kumar on Super User See other posts from Super User or by Santosh Kumar
Published on 2012-12-08T16:46:35Z Indexed on 2012/12/08 17:07 UTC
Read the original article Hit count: 242

Filed under:

By default my Windows PowerShell starts in C:\Users\Santosh, my XAMPP installation is in D:\ so the htdocs folder is located at D:\xampp\htdocs. If I have to edit something in htdocs folder then I have to type full cd D:\xampp\htdocs\ (autocompletion is not so kind) then edit that file.

If this PowerShell were a Bash I would do this in .bash_aliases file:

alias htdocs='cd D:\xampp\htdocs'

Is it possible to maintain Bash aliases like file and alias any command in PowerShell?

© Super User or respective owner

Related posts about powershell