enable /d flag in excd by default

This commit is contained in:
David Refoua 2024-10-18 03:18:17 +03:30 committed by GitHub
parent c6dbb89129
commit 42315d8cec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

14
vendor/bin/excd.cmd vendored
View File

@ -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%