跳至主要內容

用Scoop安装一些实用工具

MonoLogueChi软件实用工具大约 1 分钟

用了这么久的 Scoopopen in new window,就随手写一点笔记出来。

提示

这类教程都是有时效性的,如果遇到与实际不一致的情况,请以实际为准。

安装 Scoop

按照官网open in new window教程安装即可。

#更改策略
Set-ExecutionPolicy RemoteSigned -scope CurrentUser

#安装
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')

使用 Scoop 安装实用工具

我这里简单说几个个人认为体验比较好的,一些目前体验不太好的,比如 VSCode 和 OBS 这类的就不提了。

sudo

提权工具,可以在 Windows 下执行 sudo 命令提权。就不需要再单独开一个使用管理员身份运行的窗口。

Oh My Posh

使用 Scoop 安装和管理 Oh My Poshopen in new window,我个人感觉体验是非常好的。

安装官网open in new window的步骤直接安装

scoop install https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/oh-my-posh.json

然后编辑配置文件 $PROFILE[1]

notepad $PROFILE

#如果装有 vscode
code $PROFILE

添加

oh-my-posh --init --shell pwsh --config "~\scoop\apps\oh-my-posh\current\themes\agnosterplus.omp.json" | Invoke-Expression

其中 --config 参数后为主题配置文件。

然后安装 Nerd Font,继续使用 Scoop 安装。

scoop bucket add nerd-fonts

scoop install Meslo-NF

然后配置 Windows Terminal

{
  "profiles": {
    "defaults": {
      "font": {
        "face": "MesloLGM NF"
      }
    }
  }
}

nodejs + pnpm

scoop install nodejs-lts pnpm

提示

如果使用 corepack 的话,不推荐使用 scoop 安装和管理 nodejs。

其他命令行工具

例如


  1. PowerShell 配置文件open in new window ↩︎