コンテンツにスキップ

MSYS2関連

最終更新日: 2021-12-22

入れとくと便利なものたち

pacman

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
pacman -sS unzip
pacman -S --noconfirm unzip
pacman -sS diffutils
pacman -S --noconfirm diffutils
pacman -sS dnsutils
pacman -S --noconfirm dnsutils
pacman -sS openssh
pacman -S --noconfirm openssh
pacman -sS patch
pacman -S --noconfirm patch
pacman -sS perl
pacman -S --noconfirm perl
pacman -sS zsh
pacman -S --noconfirm zsh

バイナリ追加

/usr/bin に入れておく

  • jq
  • dig
    • .x64.zip が入っているバージョンを探す

VSCode 連携

 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
{
    "terminal.integrated.defaultProfile.windows": "MSYS2",
    "terminal.integrated.automationShell.windows": "cmd",
    "terminal.integrated.profiles.windows": {
        "MSYS2": {
            "overrideName": true,
            "path": ["C:\\env\\msys64\\msys2_shell.cmd"],
            "args": [
                "-defterm",
                "-here",
                "-use-full-path",
                "-no-start",
                "-mingw64",
                "-shell",
                "zsh"
            ]
        },
        "cmd": {
            "path": [
                "${env:windir}\\Sysnative\\cmd.exe",
                "${env:windir}\\System32\\cmd.exe"
            ],
            "args": [],
            "icon": "terminal-cmd"
        }
    }
}

Windows Terminal 連携

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
{
    "defaultProfile": "{17da3cac-b318-431e-8a3e-7fcdefe6d114}",
    "profiles": {
        "defaults": {},
        "list": [
            {
                "commandline": "C:/env/msys64/msys2_shell.cmd -defterm -here -use-full-path -no-start -mingw64 -shell zsh",
                "font": {
                    "face": "Consolas",
                    "size": 11
                },
                "guid": "{17da3cac-b318-431e-8a3e-7fcdefe6d114}",
                "icon": "C:/msys64/mingw64.ico",
                "name": "MINGW64 / MSYS2"
            }
        ]
    }
}