Fix the /d flag

Was deleted in last commit.
This commit is contained in:
Martin Kemp 2015-03-18 10:56:25 +00:00
parent 3b637e9866
commit 34947c4f0f

View File

@ -5,7 +5,8 @@ set ALIASES=%CMDER_ROOT%\config\aliases
if ["%*"] == [""] echo Use /? for help & echo. & goto :p_show if ["%*"] == [""] echo Use /? for help & echo. & goto :p_show
if ["%1"] == ["/?"] goto:p_help if ["%1"] == ["/?"] goto:p_help
if ["%1"] == ["/reload"] goto:p_reload if ["%1"] == ["/reload"] goto:p_reload
:: /d flag for delete existing alias
if ["%1"] == ["/d"] goto:p_del %*
:: if arg is an existing alias, display it :: if arg is an existing alias, display it
if ["%2"] == [""] ( if ["%2"] == [""] (
doskey /macros | findstr /b %1= && goto:eof doskey /macros | findstr /b %1= && goto:eof