--------------------------------------------------------------------------------
@echo off
set MSYSROOT=D:\msys64
start %MSYSROOT%\usr\bin\mintty.exe -w HIDE --dir "windows\full\path\to\start" /bin/env MSYSTEM=MSYS CHERE_INVOKING=1 /bin/bash -l /msys/or/windows/full/path/to/the/script.sh
--------------------------------------------------------------------------------
start - 스크립트 실행중 커맨드라인 창이 남는 것을 방지
-w HIDE - mintty 실행 창이 보이지 않도록 설정
--dir - 특정 디렉토리로 이동하여 실행. 없으면 홈
CHERE_INVOKING=1 - 홈디렉토리로 이동하는 것을 방지
2018년 12월 18일 화요일
2016년 11월 3일 목요일
msys2
msys2 에 대한 소개 참고
http://a4.aurynj.net/post/119164673973/msys2
* msys2 설치
1. http://msys2.github.io/ 에서 인스톨러를 받는다.
# 인스톨러로 설치하기 싫어서 압축파일을 받았다.
http://repo.msys2.org/distrib/x86_64/msys2-base-x86_64-20161025.tar.xz
2. 압축 파일을 풀어 C:\msys64 로 설치
3. 터미널 실행
C:\msys64\mingw64.exe
4. 터미널 환경 설정 (이건 취향대로)
Alt + Space Bar > Options...
Looks
Cursor: (*) Block
Text
Font: Bitstream Vera Sans Mono, 12pt
Locale: ko_KR
Character set: UTF-8
Mouse
Right mouse button: (*) Paste
Middle mouse button: (*) NothingWindow
# 마우스 오른쪽 버튼의 Menu 기능은 컨텍스트 키 또는 타이틀바 오른 클릭으로 표시 가능.
또는
--------------------------------------------------------------------------------
$ cat ~/.minttyrc
CursorType=block
Font=Bitstream Vera Sans Mono
FontHeight=12
Locale=ko_KR
Charset=UTF-8
CopyAsHTML=16777216
MiddleClickAction=void
RightClickAction=paste
5. 패키지 설치
$ pacman -Syu # db 동기화 및 업그레이드
$ pacman -Su # 나머지 업그레이드
$ pacman -S vim git tig tar patch diffutils winpty openssh man-db man-pages-posix
# 전체 화면으로 바꾸면 진짜 linux 쓰는 것 같다.
$ pacman -Sl # 설치 패키지 리스트
참고
* http://a4.aurynj.net/post/119164673973/msys2
* https://wiki.archlinux.org/index.php/Pacman_(%ED%95%9C%EA%B5%AD%EC%96%B4)
http://a4.aurynj.net/post/119164673973/msys2
* msys2 설치
1. http://msys2.github.io/ 에서 인스톨러를 받는다.
# 인스톨러로 설치하기 싫어서 압축파일을 받았다.
http://repo.msys2.org/distrib/x86_64/msys2-base-x86_64-20161025.tar.xz
2. 압축 파일을 풀어 C:\msys64 로 설치
3. 터미널 실행
C:\msys64\mingw64.exe
4. 터미널 환경 설정 (이건 취향대로)
Alt + Space Bar > Options...
Looks
Cursor: (*) Block
Text
Font: Bitstream Vera Sans Mono, 12pt
Locale: ko_KR
Character set: UTF-8
Mouse
Right mouse button: (*) Paste
Middle mouse button: (*) NothingWindow
# 마우스 오른쪽 버튼의 Menu 기능은 컨텍스트 키 또는 타이틀바 오른 클릭으로 표시 가능.
--------------------------------------------------------------------------------
$ cat ~/.minttyrc
CursorType=block
Font=Bitstream Vera Sans Mono
FontHeight=12
Locale=ko_KR
Charset=UTF-8
CopyAsHTML=16777216
MiddleClickAction=void
RightClickAction=paste
--------------------------------------------------------------------------------
5. 패키지 설치
$ pacman -Syu # db 동기화 및 업그레이드
$ pacman -Su # 나머지 업그레이드
$ pacman -S vim git tig tar patch diffutils winpty openssh man-db man-pages-posix
# 전체 화면으로 바꾸면 진짜 linux 쓰는 것 같다.
$ pacman -Sl # 설치 패키지 리스트
참고
* http://a4.aurynj.net/post/119164673973/msys2
* https://wiki.archlinux.org/index.php/Pacman_(%ED%95%9C%EA%B5%AD%EC%96%B4)
피드 구독하기:
글 (Atom)