Enhance the cd command in cmd

Add some new features to the cd command:
* `cd`: go to %HOME% or %USERPROFILE%
* `cd -`: go to previous directory
* `h`: show 10 lines of history
* `cd [0-9]`: go to the history lines passed in parameter
* `p`: pop the last line in the history, and go there (sort of undo cd)

Also, no need to pass the `/d` parameter anymore, cd will change the
drive automatically.
This commit is contained in:
Nicolas Arnaud-Cormos
2015-01-10 10:23:57 +01:00
parent 17b4525e60
commit 21e989ba6f
3 changed files with 215 additions and 1 deletions

View File

@ -1,7 +1,10 @@
e.=explorer .
gl=git log --oneline --all --graph --decorate $*
ls=ls --color $*
pwd=cd
pwd=chdir
clear=cls
history=cat %CMDER_ROOT%\config\.history
unalias=alias /d $1
cd=cdplus.bat $*
h=cdplus /h $1
p=cdplus /p