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?

  • @bob_wiley
    link
    English
    1
    edit-2
    11 months ago

    deleted by creator

    • @trymeoutOP
      link
      English
      11 year ago

      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.

      • @bob_wiley
        link
        English
        1
        edit-2
        11 months ago

        deleted by creator