mirror of
https://github.com/cmderdev/cmder.git
synced 2025-07-03 10:33:31 +08:00
Merge remote-tracking branch 'upstream/development' into development
Conflicts: bin/alias.bat
This commit is contained in:
@ -12,7 +12,11 @@ if ["%1"] == ["/?"] goto:p_help
|
||||
if ["%1"] == ["/reload"] goto:p_reload
|
||||
:: /d flag for delete existing alias
|
||||
if ["%1"] == ["/d"] goto:p_del %*
|
||||
if ["%2"] == [""] echo Insufficient parameters. & goto:p_help
|
||||
:: if arg is an existing alias, display it
|
||||
if ["%2"] == [""] (
|
||||
doskey /macros | findstr /b %1= && goto:eof
|
||||
echo Insufficient parameters. & goto:p_help
|
||||
)
|
||||
|
||||
:: validate alias
|
||||
for /f "delims== tokens=1" %%G in ("%_x%") do set alias=%%G
|
||||
|
Reference in New Issue
Block a user