mirror of
https://github.com/cmderdev/cmder.git
synced 2025-11-30 02:29:48 +08:00
Merge remote-tracking branch 'upstream/master' into development-dax
* upstream/master:
cleanup
respect PATHEXT instead of hardcoding our own value
add missing qualified dir
cleanup
prevent warnings if the dir does not exist
enable `/d` flag in `excd` by default
fix conflict
add notes on what shim actually is
⬆️ Update dependencies (git-for-windows v2.47.0.windows.1, clink v1.7.3, clink-completions v0.6.0)
make library comments consistent and clean up code
This commit is contained in:
14
vendor/bin/excd.cmd
vendored
14
vendor/bin/excd.cmd
vendored
@@ -1,6 +1,8 @@
|
||||
@if "%~1"=="/?" (@cd %*)
|
||||
@set excd=%*
|
||||
@set excd=%excd:"=%
|
||||
@if "%excd:~0,1%"=="~" (@set excd=%userprofile%\%excd:~1%)
|
||||
@if not "%~1"=="/d" (@set excd_param="/d") else (@set excd_param=)
|
||||
@cd %excd_param% "%excd%"
|
||||
@echo off
|
||||
set excd=%*
|
||||
set excd=%excd:"=%
|
||||
set excd_param=/d
|
||||
if /i "%excd:~0,2%"=="/d" set "excd=%excd:~2%"
|
||||
if "%excd:~0,1%"=="~" (set excd=%userprofile%\%excd:~1%)
|
||||
if "%excd:~0,1%"=="/" (set excd_param=)
|
||||
cd %excd_param% %excd%
|
||||
|
||||
Reference in New Issue
Block a user