Repo Meta

chawyehsu-dorado

Notes

How

Find Software

- online via:
  <iframe src='https://bjansen.github.io/scoop-apps/' style='height:40vh;width:100%' class='iframe-radius' allow='fullscreen'></iframe>
via: https://bjansen.github.io/scoop-apps/
- local: `scoop search xxx`

Migrate PCs

- {{embed ((65ccf1f1-1c85-4844-8e8f-b0947b25b0fd))}}
  #star
- > 你可以 scoop export 一个 json 文件,下次重装直接 scoop import 就行了
  — [Windows 包管理 scoop 太好用了! - V2EX](https://www.v2ex.com/t/869453)

Reset Version

      scoop reset logseq@0.10.8

What

                function New-DirectoryJunction($source, $target) {
                  # test if this script is being executed inside a docker container
                  if (Get-Service -Name cexecsvc -ErrorAction SilentlyContinue) {
                    cmd.exe /d /c "mklink /j `"$source`" `"$target`""
                  } else {
                    New-Item -Path $source -ItemType Junction -Value $target
                  }
                    ...
    - scoop bucket 怎么配置... Json 的作用是什么???
  - Solution
    - https://github.com/ScoopInstaller/Extras/blob/ee8f752e6f152e86ba61cbe1de8c00bac7efee84/bucket/chromium.json#L32-L37
          "post_install": [
            "if (!(Test-Path \"$dir\\User Data\\*\") -and (Test-Path \"$env:LocalAppData\\Chromium\\User Data\")) {",
              " info '[Portable Mode]: Copying user data...'",
              " Copy-Item \"$env:LocalAppData\\Chromium\\User Data\\*\" \"$dir\\User Data\" -Recurse",
            // FIXME: New-DirectoryJunction Scipt???
              // Reference:
                // https://github.com/search?q=repo:ScoopInstaller/Scoop+function+info&type=code
                // https://github.com/search?q=repo:ScoopInstaller/Scoop+function+New-DirectoryJunction&type=code
            "}"
          ],
    - Location
      - [bucket/brave.json](https://github.com/ScoopInstaller/Extras/blob/90b31955ada69b6bc83d35ad365feef6f9581120/bucket/brave.json#L30)
      - [bucket/googlechrome.json](https://github.com/ScoopInstaller/Extras/blob/90b31955ada69b6bc83d35ad365feef6f9581120/bucket/googlechrome.json#L26)
      - [bucket/chromium.json](https://github.com/ScoopInstaller/Extras/blob/90b31955ada69b6bc83d35ad365feef6f9581120/bucket/chromium.json#L22)
      - [bucket/ungoogled-chromium.json](https://github.com/ScoopInstaller/Extras/blob/90b31955ada69b6bc83d35ad365feef6f9581120/bucket/ungoogled-chromium.json#L21)
  • 从零开始配置
      $psversiontable.psversion.major
      set-executionpolicy remotesigned -scope currentuser
      # check up ”PS”
      $env:SCOOP='D:\scoop'
      [environment]:setEnvironmentVariable('SCOOP',$env:SCOOP,'User')
      iwr -useb get.scoop.sh | iex
      # customize scoop path
      scoop bucket add extras
      scoop bucket add dorado https://github.com/chawyehsu/dorado
      scoop bucket add dodorz https://github.com/dodorz/scoop
      # add extra repo
      ##Beautify###########################################
      # Maybe u should install scoop first from
      # https://github.com/lukesampson/scoop
      # Dowmload powershell 7.x instead of default 5.x form
      # https://github.com/PowerShell/PowerShell/releases
      # then run the powershell 7.x
      Install-Module posh-git -Scope CurrentUser
      Install-Module oh-my-posh -Scope CurrentUser
      #
      $PROFILE
      if (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force }
      notepad $PROFILE
      # then code $PROFILE
      # you could input the path to freash the powershell
      # add the config like this:
      Import-Module posh-git
      Import-Module oh-my-posh
      Set-PoshPrompt Paradox
  - Refs
    - Hidden
      - [「一行代码」搞定软件安装卸载,用 Scoop 管理你的 Windows 软件 - 少数派](https://sspai.com/post/52496)
      - [给 Scoop 加上这些软件仓库,让它变成强大的 Windows 软件管理器 - 少数派](https://sspai.com/post/52710)
      - [你需要掌握的Scoop技巧和知识 - 知乎](https://zhuanlan.zhihu.com/p/135278662)
      - [Windows | Scoop软件包管理神器 | 小新博客](https://www.limufang.com/post/569.html)
    - could see more prompts from [Themes | Oh My Posh](https://ohmyposh.dev/docs/themes)
    - notice its not "Set-Theme" from [Windows Terminal - PowerShell customization via oh-my-posh/posh-git Set-Theme error? · Issue #9237 · microsoft/terminal](https://github.com/microsoft/terminal/issues/9237#issuecomment-798913706)
      - > It seems the "Set-Theme" cmdlet was renamed to "Set-PoshPrompt".
    - more color-schemes: [Windows 终端配色方案 | Microsoft Learn](https://learn.microsoft.com/zh-cn/windows/terminal/customize-settings/color-schemes)

References