hoon

MSYS2 - windows terminal에서 사용설정 본문

MSYS2 - windows terminal에서 사용설정

hoon123 2022. 7. 3. 22:17

윈도우에서 gcc를 사용할 수 있도록 하는 소프트웨어, 자세한 내용은 구글에 검색해보자

https://www.msys2.org/ --> 여기에서 다운 및 자세한 설명이 있다.

msys2를 windows terminal에서 열 수 있게 설정하는 방법은 

https://www.msys2.org/docs/terminals/ 여기에서 잘 설명되어 있다.

 

Json 파일 설정

사이트 내 다음과 같은 구문을 넣어 설정하라고 설명이 되어 있는데

// This makes MINGW64 the default shell
"defaultProfile": "{17da3cac-b318-431e-8a3e-7fcdefe6d114}",
"profiles": {
  "list":
  [
    // ...
    {
      "guid": "{17da3cac-b318-431e-8a3e-7fcdefe6d114}",
      "name": "MINGW64 / MSYS2",
      "commandline": "C:/msys64/msys2_shell.cmd -defterm -here -no-start -mingw64",
      "startingDirectory": "C:/msys64/home/%USERNAME%",
      "icon": "C:/msys64/mingw64.ico",
      "fontFace": "Lucida Console",
      "fontSize": 9
    },
    {
      "guid": "{2d51fdc4-a03b-4efe-81bc-722b7f6f3820}",
      "name": "MINGW32 / MSYS2",
      "commandline": "C:/msys64/msys2_shell.cmd -defterm -here -no-start -mingw32",
      "startingDirectory": "C:/msys64/home/%USERNAME%",
      "icon": "C:/msys64/mingw32.ico",
      "fontFace": "Lucida Console",
      "fontSize": 9
    },
    {
      "guid": "{71160544-14d8-4194-af25-d05feeac7233}",
      "name": "MSYS / MSYS2",
      "commandline": "C:/msys64/msys2_shell.cmd -defterm -here -no-start -msys",
      "startingDirectory": "C:/msys64/home/%USERNAME%",
      "icon": "C:/msys64/msys2.ico",
      "fontFace": "Lucida Console",
      "fontSize": 9
    },
    // ...
  ]
}

list 안에 다른 터미널, wsl, powershell 밑에 설정 넣어주면 된다. 참고로 fontFace와 fontSize 부분에서는 오류가 생겨서 해당 부분을 제거하였다.

            {
                "guid": "{17da3cac-b318-431e-8a3e-7fcdefe6d114}",
                "name": "MINGW64 / MSYS2",
                "commandline": "C:/msys64/msys2_shell.cmd -defterm -here -no-start -mingw64",
                "startingDirectory": "C:/msys64/home/%USERNAME%",
                "icon": "C:/msys64/mingw64.ico"
              },
              {
                "guid": "{2d51fdc4-a03b-4efe-81bc-722b7f6f3820}",
                "name": "MINGW32 / MSYS2",
                "commandline": "C:/msys64/msys2_shell.cmd -defterm -here -no-start -mingw32",
                "startingDirectory": "C:/msys64/home/%USERNAME%",
                "icon": "C:/msys64/mingw32.ico"
              },
              {
                "guid": "{71160544-14d8-4194-af25-d05feeac7233}",
                "name": "MSYS / MSYS2",
                "commandline": "C:/msys64/msys2_shell.cmd -defterm -here -no-start -msys",
                "startingDirectory": "C:/msys64/home/%USERNAME%",
                "icon": "C:/msys64/msys2.ico"
              }

결과

'' 카테고리의 다른 글

[python3] 잘안써서 기억 안나는거 생각날때 마다 추가  (0) 2023.03.26
Vscode 편하게 분할 창  (0) 2023.03.26
HOW TO USE GIT?  (0) 2022.07.03
Comments