mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-25 23:59:07 +08:00
Merge branch 'master' of https://github.com/cmderdev/cmder
This commit is contained in:
commit
81951a4a14
7
.github/stale.yml
vendored
7
.github/stale.yml
vendored
@ -10,9 +10,10 @@ staleLabel: "👀 Awaiting Response"
|
|||||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||||
markComment: >
|
markComment: >
|
||||||
This issue has been automatically marked as stale because it has not had
|
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.
|
any recent activity. It will be closed in a week if no further activity occurs.
|
||||||
Thank you for your contribution.
|
Thank you for your contribution(s).
|
||||||
# Comment to post when closing a stale issue. Set to `false` to disable
|
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||||
closeComment: >
|
closeComment: >
|
||||||
This issue has been automatically closed due to it not having any
|
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).
|
||||||
|
@ -10,6 +10,12 @@
|
|||||||
|
|
||||||
### Fixes
|
### 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)
|
* 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.
|
* 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)
|
* Resolves [#2105](https://github.com/cmderdev/cmder/issues/2105)
|
||||||
|
53
vendor/bin/alias.cmd
vendored
53
vendor/bin/alias.cmd
vendored
@ -48,28 +48,9 @@ goto parseargument
|
|||||||
doskey /macros | %WINDIR%\System32\findstr /b %currentarg%= && exit /b
|
doskey /macros | %WINDIR%\System32\findstr /b %currentarg%= && exit /b
|
||||||
echo insufficient parameters.
|
echo insufficient parameters.
|
||||||
goto :p_help
|
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 (
|
) else (
|
||||||
|
:: handle quotes within command definition, e.g. quoted long file names
|
||||||
set _x=%*
|
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
|
:: validate alias
|
||||||
if [%action%] == [create] (
|
for /f "delims== tokens=1,* usebackq" %%G in (`echo "!_x!"`) do (
|
||||||
for /f "tokens=1,* usebackq" %%G in (`echo !_x!`) do (
|
set alias_name=%%G
|
||||||
set alias_name=%%G
|
set alias_value=%%H
|
||||||
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!
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
:: 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
|
::remove spaces
|
||||||
set _temp=%alias_name: =%
|
set _temp=%alias_name: =%
|
||||||
|
|
||||||
@ -146,10 +119,6 @@ echo.Usage:
|
|||||||
echo.
|
echo.
|
||||||
echo. alias [options] [alias=alias command]
|
echo. alias [options] [alias=alias command]
|
||||||
echo.
|
echo.
|
||||||
echo OR
|
|
||||||
echo.
|
|
||||||
echo. alias create [alias] [alias command]
|
|
||||||
echo.
|
|
||||||
echo.Options:
|
echo.Options:
|
||||||
echo.
|
echo.
|
||||||
echo. Note: Options MUST precede the alias definition.
|
echo. Note: Options MUST precede the alias definition.
|
||||||
|
9
vendor/bin/vscode_init.cmd
vendored
Normal file
9
vendor/bin/vscode_init.cmd
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
@echo off
|
||||||
|
IF [%1] == [] (
|
||||||
|
REM -- manually opened console (Ctrl + Shift + `) --
|
||||||
|
CALL "%~dp0..\init.bat"
|
||||||
|
) ELSE (
|
||||||
|
REM -- task --
|
||||||
|
CALL cmd %*
|
||||||
|
exit
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user