Here is how to set aliases for the Windows command window and Clink if you’re using Clink.
First, create a cmd file somewhere to create your aliases using the doskey command. Mine looks like this:
@echo off doskey np=notepad++.exe $* doskey ls=dir $* doskey ns=nslookup $* doskey ip=ipconfig $* doskey hosts=notepad++.exe C:\Windows\System32\drivers\etc\hosts doskey aliases=notepad++.exe C:\Applis\clink\aliases.cmd
You can also use all available cmd commands and variables to customize your shell, like title, color, set PROMPT, …
Then, open your registry and go to the following key:
HKEY_CURRENT_USER\Software\Microsoft\Command Processor
and add add a string value named AutoRun and valued with the absolute path of your aliases file.
That’s it, from now on, all your aliases will be loaded every time you start cmd or clink.