mirror of
https://github.com/cmderdev/cmder.git
synced 2025-02-10 23:49:07 +08:00
handles spaces better, also using CMDER_ROOT for everything
This commit is contained in:
parent
092c046456
commit
3c979780f9
@ -13,8 +13,8 @@ if not ["%_temp%"] == ["%_temp2%"] (
|
|||||||
goto:eof
|
goto:eof
|
||||||
)
|
)
|
||||||
|
|
||||||
echo %* >> %~dp0..\config\aliases
|
echo %* >> "%CMDER_ROOT%\config\aliases"
|
||||||
doskey /macrofile=%~dp0..\config\aliases
|
doskey /macrofile="%CMDER_ROOT%\config\aliases"
|
||||||
echo Alias created
|
echo Alias created
|
||||||
endlocal
|
endlocal
|
||||||
goto:eof
|
goto:eof
|
||||||
|
@ -488,7 +488,7 @@
|
|||||||
<key name="Task1" modified="2013-11-29 16:19:41" build="131107">
|
<key name="Task1" modified="2013-11-29 16:19:41" build="131107">
|
||||||
<value name="Name" type="string" data="{cmd}"/>
|
<value name="Name" type="string" data="{cmd}"/>
|
||||||
<value name="GuiArgs" type="string" data=" /icon "cmd.exe""/>
|
<value name="GuiArgs" type="string" data=" /icon "cmd.exe""/>
|
||||||
<value name="Cmd1" type="string" data="cmd /k %CMDER_ROOT%\vendor\init.bat -new_console:d:%USERPROFILE%"/>
|
<value name="Cmd1" type="string" data="cmd /k "%CMDER_ROOT%\vendor\init.bat" -new_console:d:%USERPROFILE%"/>
|
||||||
<value name="Active" type="dword" data="00000000"/>
|
<value name="Active" type="dword" data="00000000"/>
|
||||||
<value name="Count" type="dword" data="00000001"/>
|
<value name="Count" type="dword" data="00000001"/>
|
||||||
<value name="Hotkey" type="dword" data="00000000"/>
|
<value name="Hotkey" type="dword" data="00000000"/>
|
||||||
|
10
vendor/init.bat
vendored
10
vendor/init.bat
vendored
@ -13,10 +13,8 @@
|
|||||||
set architecture=64
|
set architecture=64
|
||||||
)
|
)
|
||||||
|
|
||||||
@set rootDir="%~dp0\.."
|
|
||||||
|
|
||||||
:: Run clink
|
:: Run clink
|
||||||
@%rootDir%\vendor\clink\clink_x%architecture%.exe inject --quiet --profile %rootDir%\config
|
@"%CMDER_ROOT%\vendor\clink\clink_x%architecture%.exe" inject --quiet --profile "%CMDER_ROOT%\config"
|
||||||
|
|
||||||
:: Prepare for msysgit
|
:: Prepare for msysgit
|
||||||
|
|
||||||
@ -25,11 +23,11 @@
|
|||||||
@if not defined TERM set TERM=cygwin
|
@if not defined TERM set TERM=cygwin
|
||||||
|
|
||||||
:: Enhance Path
|
:: Enhance Path
|
||||||
@set git_install_root=%rootDir%\vendor\msysgit
|
@set git_install_root=%CMDER_ROOT%\vendor\msysgit
|
||||||
@set PATH=%PATH%;%rootDir%\bin;%git_install_root%\bin;%git_install_root%\mingw\bin;%git_install_root%\cmd;%git_install_root%\share\vim\vim73;
|
@set PATH=%PATH%;%CMDER_ROOT%\bin;%git_install_root%\bin;%git_install_root%\mingw\bin;%git_install_root%\cmd;%git_install_root%\share\vim\vim73;
|
||||||
|
|
||||||
:: Add aliases
|
:: Add aliases
|
||||||
@doskey /macrofile="%rootDir%\config\aliases"
|
@doskey /macrofile="%CMDER_ROOT%\config\aliases"
|
||||||
|
|
||||||
:: Set home path
|
:: Set home path
|
||||||
@set HOME=%USERPROFILE%
|
@set HOME=%USERPROFILE%
|
||||||
|
Loading…
Reference in New Issue
Block a user