pi/kimi2.5 로 작업; bottom 수정 및 lazygit 추가
This commit is contained in:
1 parent
a07e58ce04
commit
dd494a4991
7 files changed
+746
-120
No files matched your search
+24
-24
@@ -1,56 +1,56 @@
|
||||
@echo off
|
||||
:: ============================================================
|
||||
:: install-bottom.bat
|
||||
:: bottom(btm) 프로세스 모니터 설치 스크립트 (Windows 배치파일)
|
||||
:: Install script for bottom(btm) process monitor (Windows batch)
|
||||
::
|
||||
:: 이 파일은 PowerShell 스크립트(install-bottom.ps1)를 호출합니다.
|
||||
:: PowerShell 5.1 이상이 필요합니다 (Windows 10/11 기본 탑재).
|
||||
:: This file calls the PowerShell script (install-bottom.ps1).
|
||||
:: PowerShell 5.1 or higher is required (included in Windows 10/11).
|
||||
::
|
||||
:: 사용법:
|
||||
:: Usage:
|
||||
:: install-bottom.bat
|
||||
:: install-bottom.bat "C:\tools\bin" <- 설치 경로 지정
|
||||
:: install-bottom.bat "C:\tools\bin" <- specify install path
|
||||
:: ============================================================
|
||||
|
||||
:: ── UTF-8 코드페이지로 전환(한글 출력 깨짐 방지) ──
|
||||
:: ── Switch to UTF-8 codepage ──
|
||||
chcp 65001 >nul
|
||||
|
||||
setlocal EnableDelayedExpansion
|
||||
|
||||
echo [INFO] install-bottom.bat 시작
|
||||
echo [INFO] install-bottom.bat started
|
||||
|
||||
:: ── PowerShell 존재 여부 확인 ────────────────────────────────
|
||||
:: ── Check if PowerShell exists ────────────────────────────────
|
||||
where powershell >nul 2>&1
|
||||
if %ERRORLEVEL% neq 0 (
|
||||
echo [ERROR] PowerShell을 찾을 수 없습니다.
|
||||
echo Windows 7 이상에서는 PowerShell이 기본 탑재됩니다.
|
||||
echo [ERROR] PowerShell not found.
|
||||
echo PowerShell is included in Windows 7 and later.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
:: ── 이 배치파일과 같은 폴더의 install-bottom.ps1 위치 확인 ──
|
||||
:: ── Check location of install-bottom.ps1 in same folder ──
|
||||
set "PS1_PATH=%~dp0install-bottom.ps1"
|
||||
if not exist "%PS1_PATH%" (
|
||||
echo [ERROR] install-bottom.ps1 파일을 찾을 수 없습니다.
|
||||
echo 이 배치파일과 같은 폴더에 install-bottom.ps1 이 있어야 합니다.
|
||||
echo 위치: %PS1_PATH%
|
||||
echo [ERROR] install-bottom.ps1 not found.
|
||||
echo install-bottom.ps1 must be in the same folder as this batch file.
|
||||
echo Location: %PS1_PATH%
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
:: ── 설치 경로 파라미터 처리 ────────────────────────────────
|
||||
:: ── Process install path parameter ────────────────────────────────
|
||||
set "EXTRA_ARGS="
|
||||
if not "%~1"=="" (
|
||||
set "EXTRA_ARGS=-InstallDir ""%~1"""
|
||||
echo [INFO] 설치 경로 지정: %~1
|
||||
echo [INFO] Install path specified: %~1
|
||||
)
|
||||
|
||||
echo [INFO] PowerShell 스크립트를 실행합니다...
|
||||
echo [INFO] Running PowerShell script...
|
||||
echo.
|
||||
|
||||
:: ── PowerShell 실행 ─────────────────────────────────────────
|
||||
:: -ExecutionPolicy Bypass : 실행 정책 우회 (현재 사용자 설정 변경 없음)
|
||||
:: -NoProfile : 프로필 로드 생략 (빠른 시작)
|
||||
:: -NonInteractive : 대화형 프롬프트 억제
|
||||
:: ── Run PowerShell ─────────────────────────────────────────
|
||||
:: -ExecutionPolicy Bypass : Bypass execution policy (no user config change)
|
||||
:: -NoProfile : Skip profile loading (faster startup)
|
||||
:: -NonInteractive : Suppress interactive prompts
|
||||
powershell.exe -ExecutionPolicy Bypass -NoProfile -NonInteractive ^
|
||||
-File "%PS1_PATH%" %EXTRA_ARGS%
|
||||
|
||||
@@ -58,10 +58,10 @@ set "PS_EXIT=%ERRORLEVEL%"
|
||||
|
||||
echo.
|
||||
if %PS_EXIT% equ 0 (
|
||||
echo [INFO] 설치가 완료되었습니다.
|
||||
echo 새 터미널(cmd/PowerShell)을 열면 'btm' 명령어를 사용할 수 있습니다.
|
||||
echo [INFO] Installation complete.
|
||||
echo Open a new terminal (cmd/PowerShell) to use the 'btm' command.
|
||||
) else (
|
||||
echo [ERROR] 설치 중 오류가 발생했습니다. (종료 코드: %PS_EXIT%)
|
||||
echo [ERROR] An error occurred during installation. (Exit code: %PS_EXIT%)
|
||||
)
|
||||
|
||||
echo.
|
||||
|
||||
Reference in new issue
Block a user