mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 09:49:12 +08:00
24 lines
458 B
Batchfile
24 lines
458 B
Batchfile
:: Set prompt style
|
|
@prompt $E[1;32;40m$P $_$E[1;30;40m$$ $E[0m
|
|
|
|
:: Pick right version of clink
|
|
@if "%PROCESSOR_ARCHITECTURE%"=="x86" (
|
|
set architecture=86
|
|
) else (
|
|
set architecture=64
|
|
)
|
|
|
|
:: Run clink
|
|
@vendor\clink\clink_x%architecture%.exe inject --quiet --profile config
|
|
|
|
@set rootDir=%CD%
|
|
|
|
:: Enhance Path
|
|
@set PATH=%PATH%;%rootDir%\bin;
|
|
|
|
:: Add aliases
|
|
@doskey /macrofile=%rootDir%\config\aliases
|
|
|
|
:: cd into users homedir
|
|
@cd /d "%userprofile%"
|