winget镜像

1
2
winget source remove winget
winget source add winget https://mirrors.ustc.edu.cn/winget-source --trust-level trusted

Git Bash配置

1
2
winget install Git.Git
git clone --depth 1 https://github.com/scop/bash-completion.git /usr/share/bash-completion

~/.bashrc

1
2
3
4
5
6
7
8
# fix additional line before the prompt
PS1='\[\033]0;$TITLEPREFIX:$PWD\007\]\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n$ '

# Use bash-completion, if available, and avoid double-sourcing
[[ $PS1 &&
  ! ${BASH_COMPLETION_VERSINFO:-} &&
  -f /usr/share/bash-completion/bash_completion ]] &&
    . /usr/share/bash-completion/bash_completion

mise

https://mise.jdx.dev/

https://mise-versions.jdx.dev/

1
winget install jdx.mise

pwsh

1
(&mise activate pwsh) | Out-String | Invoke-Expression

bash

1
echo 'eval "$(mise activate bash)"' >> ~/.bashrc

msys2

1
winget install MSYS2.MSYS2

Open UCRT

1
2
3
4
5
6
sed -i "s#mirror.msys2.org/#mirrors.ustc.edu.cn/msys2/#g" /etc/pacman.d/mirrorlist*
pacman -Sy
# gcc mingw32-make
pacman -S mingw-w64-ucrt-x86_64-toolchain
pacman -S mingw-w64-ucrt-x86_64-python-conan
pacman -S mingw-w64-ucrt-x86_64-cmake

补全

1
mise use -g carapace@latest