叨嗒嗵 - win11
type: channel
link: https://www.dotatong.com/index.php/tag/win11/
items: Win11 git-bash安装zsh和oh_my_zsh
items: Win11专业版KMS命令激活

Win11 git-bash安装zsh和oh_my_zsh
type: item
date: 2024-07-10T01:30:00+00:00
description: 安装git-bash for windowshttps://gitforwindows.org/下载安装一直下一步即可下载zshhttps://dotatong.cn/tools/zsh-5.8-3-x86_64.pkg.tar下载后解压到 Git 安装的根目录（例如：C:\Program Files\Git），相当于对git bash做一个补充包。安装oh_my_zshsh -c "$(curl -fsSL https://dotatong.cn/tools/oh_my_zsh.sh)"安装oh_my_zsh主题基于refined自定义了一个类似ys的主题dotatong.zsh-theme，该主题不会导致窗口无响应。下载 https://dotatong.cn/tools/dotatong.zsh-theme 该主题文件放至~/.oh-my-zsh/themes/目录修改配置文件~/.zshrcZSH_THEME="dotatong"配置环境变量在系统环境变量的path中，加入该路径C:\Program Files\Git\usr\bin作用是为了直接执行C:\Program Files\Git\usr\bin\zsh.exe时，能够利用该目录提供的linux常用工具，例如：mkdir、rm、chmod等等直接使用zsh之前的方案是在~/.bashrc中加入切换到zsh的命令，来启用zsh和oh_my_zsh，该方式有时候启动速度比较慢。所以我们采用直接执行C:\Program Files\Git\usr\bin\zsh.exe的方式启用zsh。具体做法：将Windows Terminal Preview中的Git Bash的启动命令修改为C:\Program Files\Git\usr\bin\zsh.exe将IDE中的terminal启动命令修改为C:\Program Files\Git\usr\bin\zsh.exeWindows Terminal Preview配置建议：推荐安装Windows Terminal Preview，因为该版本，窗口未激活状态也能保持透明度。这里贴出我的终端配置{ "$help": "https://aka.ms/terminal-documentation", "$schema": "https://aka.ms/terminal-profiles-schema-preview", "actions": [ { "command": { "action": "copy", "singleLine": false }, "id": "User.copy.644BA8F2", "keys": "ctrl+c" }, { "command": { "action": "globalSummon" }, "id": "User.globalSummon.51A3D78C", "keys": "ctrl+alt+e" }, { "command": { "action": "switchToTab", "index": 0 }, "id": "User.switchToTab.D3F0B923", "keys": "ctrl+1" }, { "command": "unbound", "keys": "ctrl+shift+t" }, { "command": "unbound", "keys": "ctrl+shift+n" }, { "command": "unbound", "keys": "ctrl+shift+w" }, { "command": "unbound", "keys": "win+sc(41)" }, { "command": "unbound", "keys": "f12" }, { "command": "unbound", "keys": "ctrl+alt+1" }, { "command": "unbound", "keys": "ctrl+alt+2" }, { "command": "unbound", "keys": "ctrl+alt+3" }, { "command": "unbound", "keys": "ctrl+alt+4" }, { "command": "unbound", "keys": "ctrl+alt+5" }, { "command": { "action": "switchToTab", "index": 4 }, "id": "User.switchToTab.F747588A", "keys": "ctrl+5" }, { "command": "paste", "id": "User.paste", "keys": "ct…

Win11专业版KMS命令激活
type: item
date: 2024-07-09T04:41:03+00:00
description: 开始菜单中找到 Windows终端，右键，用管理员打开依次输入以下命令执行即可slmgr -ipk W269N-WFGWX-YVC9B-4J6C9-T83GX slmgr -skms kms.0t.net.cn slmgr -ato