r/theprivacymachine 11d ago

Question Changing Windows powershell command namings?

I cant stand typing stuff into the terminal for Windows stuff and I sort of have to get through a lot of them. A simple one word command on Linux and two sentence long command for Windows is no way in hell an efficient way to get work done.

I found some feature called aliases. Looks like this:
New-Alias -Name MyPreferredPhrase -Value TheOldParagraph

Is there any risk for the system to rename these functions into my defined aliases? What if some dependency might be using the same syntax as my alias, would Windows know how to tell these apart?

6 Upvotes

4 comments sorted by

1

u/KramerForPresident 11d ago

Wouldnt be a function if it ended up breaking Windows now would it? Idk how it woerks though just applying common sense on the guess here

1

u/krazul88 11d ago

Just check to see if your alias already exists as a command before you create it. Don't be lazy.

1

u/Welcome-To-NBA-Jam 10d ago

Try win-bash or cygwin-bash. It's not everything but maybe it can do a chunk of what you need.

1

u/stupiddogmademelook 8d ago

Thanks! Cygwin does seem like something I might have luck with. Been playing around with winbash already as well