mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-15 00:09:11 +08:00
enable /d
flag in excd
by default
This commit is contained in:
parent
c6dbb89129
commit
42315d8cec
14
vendor/bin/excd.cmd
vendored
14
vendor/bin/excd.cmd
vendored
@ -1,6 +1,8 @@
|
|||||||
@if "%~1"=="/?" (@cd %*)
|
@echo off
|
||||||
@set excd=%*
|
set excd=%*
|
||||||
@set excd=%excd:"=%
|
set excd=%excd:"=%
|
||||||
@if "%excd:~0,1%"=="~" (@set excd=%userprofile%\%excd:~1%)
|
set excd_param=/d
|
||||||
@if not "%~1"=="/d" (@set excd_param="/d") else (@set excd_param=)
|
if /i "%excd:~0,2%"=="/d" set "excd=%excd:~2%"
|
||||||
@cd %excd_param% "%excd%"
|
if "%excd:~0,1%"=="~" (set excd=%userprofile%\%excd:~1%)
|
||||||
|
if "%excd:~0,1%"=="/" (set excd_param=)
|
||||||
|
cd %excd_param% %excd%
|
||||||
|
Loading…
Reference in New Issue
Block a user