For a few reasons I have recently switched over to using a windows machine for my development at work. One of the biggest issues with doing this was getting used to the windows command line. Having been a Mac / Linux user for quite a few years now it’s second nature to me to type commands such as ‘ls’ etc..
The biggest issue I have found is automatically wanting to use GNU commands within my command line. Luckily this is a pretty easy thing to rectify using something called CoreUtils. All you need to do is download CoreUtils and install it. Once you have installed it you will need to add it to your Path variables.
To add something to your path variables do:
- ‘Windows Key+R’
- Type ‘sysdm.cpl’ and click run
- Go to the Advanced Tab and click ‘Environmental Variables’
- Scroll down to ‘Path’ and click ‘Edit’
- Add the following to the end of the ‘Variable Value’: ;C:\Program Files\GnuWin32\bin (you may need to change this path if it installed somewhere else)
You’re done! Now you should be able to open up command prompt and run things such as ls, pwd, etc…
One of the other issues I have with the Windows command prompt is lack of ability to have different tabs open and to be able to copy / paste from the command line, for this you can download a program called Console2. Once downloaded you’ll be able to do things such as change to a nicer font, and change hotkeys in the settings menu, I changed the copy and paste hotkeys to ctrl+c / ctrl+v
So there you have it, a couple of simple steps in order to make life easier for you when working with the command line in a windows environment.