-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcmdplus.bat
More file actions
33 lines (27 loc) · 886 Bytes
/
Copy pathcmdplus.bat
File metadata and controls
33 lines (27 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off
:: Define root dir
if not defined CMDPLUS_PROFILE (
set CMDPLUS_PROFILE=%USERPROFILE%\cmdplus
)
if not exist %CMDPLUS_PROFILE% (
mkdir %CMDPLUS_PROFILE%
copy %~dp0config\aliases %CMDPLUS_PROFILE%
copy %~dp0config\prompt.lua %CMDPLUS_PROFILE%
)
:: Change the prompt style
:: Mmm tasty lamb
prompt $E[1;32;40m$P{git}$S$E[1;37;40m$G$S$E[0m
:: Clink inject
if /i "%PROCESSOR_ARCHITECTURE%"=="x86" (
if exist "%~dp0clink\clink_x86.exe" (
%~dp0clink\clink_x86.exe inject --quiet --profile "%CMDPLUS_PROFILE%"
)
) else if /i "%PROCESSOR_ARCHITECTURE%"=="amd64" (
if exist "%~dp0clink\clink_x64.exe" (
%~dp0clink\clink_x64.exe inject --quiet --profile "%CMDPLUS_PROFILE%"
)
)
:: Add aliases
doskey /macrofile="%CMDPLUS_PROFILE%\aliases"
:: Set home path
if not defined HOME set HOME=%USERPROFILE%