Skip to content

Instantly share code, notes, and snippets.

@protolif
Created August 26, 2015 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save protolif/18e7938452497aa9f660 to your computer and use it in GitHub Desktop.
Save protolif/18e7938452497aa9f660 to your computer and use it in GitHub Desktop.
Make Windows XP command prompt mimic a *NIX shell
@echo off
REM INSTALL: Add the full path string of this file via regedit to:
REM \HKCU\Software\Microsoft\Command Processor\AutoRun
REM Set up aliases to mimic BASH/*NIX environment
doskey ls=dir /X /Q /TW /OG /P $*
doskey ll=dir $*
doskey cat=type $*
doskey ..=cd..
doskey grep=find "$1" $2
doskey mv=ren $*
doskey rm=del $*
doskey ifconfig=ipconfig /all
doskey traceroute=tracert $1
doskey ssh=telnet $1
doskey vi=edit $1
doskey clear=cls
REM Increase prompt verbosity
prompt %username%@%computername% $P#
REM Enable 8.3 DOS-style short file/dir names
edit /?
REM Tidy up the screen
cls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment