diff --git a/.github/stale.yml b/.github/stale.yml index c3b0200..30fb6b0 100644 --- a/.github/stale.yml +++ b/.github/stale.yml @@ -10,9 +10,10 @@ staleLabel: "👀 Awaiting Response" # Comment to post when marking an issue as stale. Set to `false` to disable markComment: > This issue has been automatically marked as stale because it has not had - recent activity. It will be closed in a week if no further activity occurs. - Thank you for your contribution. + any recent activity. It will be closed in a week if no further activity occurs. + Thank you for your contribution(s). # Comment to post when closing a stale issue. Set to `false` to disable closeComment: > This issue has been automatically closed due to it not having any - activity since it was marked as stale. Thank you for your contribution. + activity since it was marked as stale. + Thank you for your contribution(s). diff --git a/CHANGELOG.md b/CHANGELOG.md index 7543a5a..97759c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,12 @@ ### Fixes +* Pull Request: [#2122](https://github.com/cmderdev/cmder/pull/2122) + * Restore old `alias.cmd` without `create` syntax because it did not work in all situations. +* Pull Request: [#2113](https://github.com/cmderdev/cmder/pull/2113) + * Add `vendor\bin\vscode_init.cmd` for use with Visual Studio Code + * Fixes [#2118](https://github.com/cmderdev/cmder/issues/2118) + * Fixes [#1985](https://github.com/cmderdev/cmder/issues/1985) * Pull Request: [#2106](https://github.com/cmderdev/cmder/pull/2106) * Portable Git requires running `post-install.bat` which deletes itself when done. This was not happening. * Resolves [#2105](https://github.com/cmderdev/cmder/issues/2105) diff --git a/vendor/bin/alias.cmd b/vendor/bin/alias.cmd index e5269f5..ccac5df 100644 --- a/vendor/bin/alias.cmd +++ b/vendor/bin/alias.cmd @@ -48,28 +48,9 @@ goto parseargument doskey /macros | %WINDIR%\System32\findstr /b %currentarg%= && exit /b echo insufficient parameters. goto :p_help - ) else if "%currentarg%" == "create" ( - set _x=%* - - set _x=!_x:^^=^^^^! - set action=create - if ["%_f%"] neq [""] ( - for /f "tokens=1,2,3,* usebackq" %%G in (`echo !_x!`) do ( - set _x=%%J - ) - ) else ( - for /f "tokens=1,2,* usebackq" %%G in (`echo !_x!`) do ( - set _x=%%H %%I - ) - ) ) else ( + :: handle quotes within command definition, e.g. quoted long file names set _x=%* - if ["%_f%"] neq [""] ( - set _x=!_x:^^=^^^^! - for /f "tokens=1,2,* usebackq" %%G in (`echo !_x!`) do ( - set _x=%%I - ) - ) ) ) @@ -88,26 +69,18 @@ if "%ALIASES%" neq "%CMDER_ROOT%\config\user_aliases.cmd" ( ) ) -:: create with multiple parameters -if [%action%] == [create] ( - for /f "tokens=1,* usebackq" %%G in (`echo !_x!`) do ( - set alias_name=%%G - set alias_value=%%H - ) -) else ( - :: validate alias - for /f "delims== tokens=1,* usebackq" %%G in (`echo "!_x!"`) do ( - set alias_name=%%G - set alias_value=%%H - ) - - :: leading quotes added while validating - set alias_name=!alias_name:~1! - - :: trailing quotes added while validating - set alias_value=!alias_value:~0,-1! +:: validate alias +for /f "delims== tokens=1,* usebackq" %%G in (`echo "!_x!"`) do ( + set alias_name=%%G + set alias_value=%%H ) +:: leading quotes added while validating +set alias_name=!alias_name:~1! + +:: trailing quotes added while validating +set alias_value=!alias_value:~0,-1! + ::remove spaces set _temp=%alias_name: =% @@ -146,10 +119,6 @@ echo.Usage: echo. echo. alias [options] [alias=alias command] echo. -echo OR -echo. -echo. alias create [alias] [alias command] -echo. echo.Options: echo. echo. Note: Options MUST precede the alias definition. diff --git a/vendor/bin/vscode_init.cmd b/vendor/bin/vscode_init.cmd new file mode 100644 index 0000000..f95dc66 --- /dev/null +++ b/vendor/bin/vscode_init.cmd @@ -0,0 +1,9 @@ +@echo off +IF [%1] == [] ( + REM -- manually opened console (Ctrl + Shift + `) -- + CALL "%~dp0..\init.bat" +) ELSE ( + REM -- task -- + CALL cmd %* + exit +)