03 January 2016

A bashrc for Windows!!!

Today I came across a script I had written long ago and had completely forgotten about. Once you start using Linux, you'd want pretty much the same functionality in Windows. So I had created a bashrc equivalent for Windows.

Create a file named WindowsBashrc.cmd and follow the instructions in the comments below (REM is the short form for "Remark", and it's the equivalent of a commented out line. REM is used in BASIC and Windows batch files for commenting out lines). These are the steps.

@echo off

REM This has to be enabled in [HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor]
REM "AutoRun"=C:\pathToYourFile\WindowsBashrc.cmd
REM It basically makes this script run whenever a command window is started


@echo "Hi Nav. Missed you! :)"
@doskey ls=dir
@doskey f="cd.."
@doskey ff="cd..;cd.."
@doskey fff="cd..;cd..;cd.."
@doskey ffff="cd..;cd..;cd..;cd.."
@d:




btw, in Linux, thse are some handy bashrc aliases you can use: http://nrecursions.blogspot.com/2010/09/setting-up-your-bash-prompt-for-colours.html

No comments: