scoopの導入
環境変数 `SCOOP` と `SCOOP_GLOBAL` を設定する(インストール先をd:\scoopにする場合)
> setx SCOOP d:\scoop\%USERNAME% > setx SCOOP_GLOBAL d:\scoop\global /m
- [scoopのインストール先を変更する - Qiita ](https://qiita.com/eamat/items/c91be7a9eb71a709b32b)scoopのインストール先を変更する - Qiita
PowerShellを立ち上げインストール
iwr -useb get.scoop.sh | iex
インストールするもの
nodejsのバージョン管理はnodistにしようかと思っていたけれど、Linuxとの統一感を高めるためにnvm-windowsにした。そもそもnodistはscoopにないので入れるならghqなどで管理することになる。Mac、Linux、Windows(WSL無し環境)でNode.jsバージョン切り替え方法を統一したい – One IT Thing
nodejs
scoop install nodejs
Fluent Terminalの導入
scoop install 7zip git
(管理者権限で) scoop bucket add nonportable scoop install fluent-terminal-np
GitHub - felixse/FluentTerminal: A Terminal Emulator based on UWP and web technologies.
wsltty(wsl用mintty)
wslttyがなんかバッチファイルの場所などをハードコーディングしているらしくて、そのまま
scoop install wsltty
すると大量にエラーが発生するから事前準備が必要。
scoopインストール先の buckets/extras/bucket/wsltty.json
ファイルを以下の内容で作成。
{ "version": "3.1.0.2", "description": "Mintty as a terminal for WSL (Windows Subsystem for Linux).", "homepage": "https://github.com/mintty/wsltty", "license": "GPL-3.0-or-later", "architecture": { "64bit": { "url": "https://github.com/mintty/wsltty/releases/download/3.1.0.2/wsltty-3.1.0.2-install-i686.exe#/dl.7z", "hash": "c0726db869c17c49361d143d6ff1566754ef7d45faa3d784cd7f7523958fd1e7" }, "32bit": { "url": "https://github.com/mintty/wsltty/releases/download/3.1.0.2/wsltty-3.1.0.2-install-x86_64.exe#/dl.7z", "hash": "bedc400ec9ca86aed1b051f84a30e6158f02b6e0cd1c3b1d4eef3d2e4f7ce2a4" } }, "extract_to": "installer", "installer": { "script": [ "Push-Location \"$dir\\installer\"", "& .\\install.bat \"$dir\" \"$dir\\config\"", "Pop-Location" ] }, "post_install": "Remove-Item -LiteralPath \"$dir\\installer\" -Force -Recurse", "uninstaller": { "script": [ "$env:installdir = $dir", "Push-Location \"$dir\"", "& .\\uninstall.bat", "Pop-Location" ] }, "checkver": "github", "autoupdate": { "architecture": { "32bit": { "url": "https://github.com/mintty/wsltty/releases/download/$version/wsltty-$version-install-i686.exe#/dl.7z" }, "64bit": { "url": "https://github.com/mintty/wsltty/releases/download/$version/wsltty-$version-install-x86_64.exe#/dl.7z" } } } }
それから
scoop bucket add extras scoop install wsltty