this post was submitted on 14 Sep 2023
0 points (50.0% liked)

Podman

108 readers
1 users here now

founded 1 year ago
MODERATORS
 

Is there way on windows to add an alias for commands in powershell and command prompt?

I want to make it so when I enter docker it will execute podman

I was able to achieve this easily on Linux to were I can always enter docker and it will execute podman, even if I closed the terminal window or rebooted my machine. It was a permanent alias redirect, not a temporary one.

Can this be done on Windows for powershell and command prompt?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago (1 children)

Creates or changes an alias for a cmdlet or other command in the current PowerShell session.

This is only for the current session, not permanent.