Easy equivalent of an alias in Windows 10 Command Prompt?

  alias, windows

I have a Windows 10 PC that I use to ssh to our local computing clusters for various tasks.

I run a command like:

ssh -X </my user name>@</our IP address>

The computing cluster is linux based (new to this). It is very easy to set an alias/macro/hotkey/ by opening your .bashrc with vi and adding something like:

alias login="ssh -X </my user name>@</our IP address>"

and then when I type ‘login’ in the terminal, it just works.

Is there an easy equivalent to this in Windows? I found something here before which required pinning my command prompt to the task bar and then editing some file (forget which) with the simple command and it just worked. I can’t find that solution right now.

Source: Windows Questions

LEAVE A COMMENT