mirror of
https://github.com/cmderdev/cmder.git
synced 2025-06-14 21:57:52 +08:00
created new build script, and accomodated to new file names
This commit is contained in:
2
vendor/Readme.md
vendored
2
vendor/Readme.md
vendored
@ -1,3 +1,3 @@
|
||||
## Vendor
|
||||
|
||||
Softwere from third parties + init sctipt
|
||||
Softwere from third parties + init sctipt
|
||||
|
15
vendor/init.bat
vendored
15
vendor/init.bat
vendored
@ -1,6 +1,10 @@
|
||||
:: Set prompt style
|
||||
@for /f "tokens=2 delims=:." %%x in ('chcp') do @set cp=%%x
|
||||
:: Init Script for cmd.exe
|
||||
:: Sets some nice defaults
|
||||
:: Created as part of cmder project
|
||||
|
||||
|
||||
:: Seting prompt style
|
||||
@for /f "tokens=2 delims=:." %%x in ('chcp') do @set cp=%%x
|
||||
:: The slow part
|
||||
:: World without Unicode is a sad world
|
||||
@chcp 65001>nul
|
||||
@ -8,6 +12,7 @@
|
||||
@prompt $E[1;32;40m$P $_$E[1;30;40mλ $E[0m
|
||||
@chcp %cp%>nul
|
||||
|
||||
|
||||
:: Pick right version of clink
|
||||
@if "%PROCESSOR_ARCHITECTURE%"=="x86" (
|
||||
set architecture=86
|
||||
@ -15,10 +20,12 @@
|
||||
set architecture=64
|
||||
)
|
||||
|
||||
|
||||
:: Run clink
|
||||
@vendor\clink\clink_x%architecture%.exe inject --quiet --profile config
|
||||
|
||||
:: Prepare for msysgit
|
||||
:: I do not even know, copypasted from their .bat
|
||||
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
|
||||
@if not exist "%HOME%" @set HOME=%USERPROFILE%
|
||||
@set PLINK_PROTOCOL=ssh
|
||||
@ -26,7 +33,7 @@
|
||||
|
||||
:: Enhance Path
|
||||
@set rootDir=%CD%
|
||||
@set git_install_root=%CD%\vendor\PortableGit
|
||||
@set git_install_root=%CD%\vendor\msysgit
|
||||
@set PATH=%PATH%;%rootDir%\bin;%git_install_root%\bin;%git_install_root%\mingw\bin;%git_install_root%\cmd;
|
||||
|
||||
:: Add aliases
|
||||
@ -34,3 +41,5 @@
|
||||
|
||||
:: cd into users homedir
|
||||
@cd /d "%userprofile%"
|
||||
|
||||
echo Welcome to cmder!
|
Reference in New Issue
Block a user