注意
此教程不适于纯纯纯小白(计算机怎么安装软件都不太明白的),毕竟我只是吧官方文档搬出来,并没有完整介绍如何安装使用(毕竟更新的这么快,谁知道会不会我写好了第二天就更新了,一切都变了😂)
文档大多都是英文建议多使用翻译
简介
因为最近常用cmd 和 powershell 感觉不太好看,要么黑漆漆的一片,要么一片蓝色……
![image-20210310211721139](https://i-blog.csdnimg.cn/blog_migrate/1f318a9cc576cb3005318700cd218bfb.png)
![image-20210310211741526](https://i-blog.csdnimg.cn/blog_migrate/5360ffc2642c76cef4496b1f6551a108.png)
我现在的终端
![image-20210310211841495](https://i-blog.csdnimg.cn/blog_migrate/b4a9d416fe99bb4ee58a9aa912f6bb6f.png)
准备工作
-
下载一个好看的终端, 例如WIndows Terminal
在微软应用商店进行下载(https://www.microsoft.com/zh-cn/p/windows-terminal/9n0dx20hk701#activetab=pivot:overviewtab)
-
下载并且安装Power shell7(不是系统自带的powershell1.0)
官方文档(中文😀):https://docs.microsoft.com/zh-cn/powershell/
下载地址:https://github.com/PowerShell/PowerShell/releases/tag/v7.1.2
-
下载安装oh-my-posh
官方文档(英文):https://ohmyposh.dev/docs/installation
安装方式建议使用scoop:
scoop安装方式(使用power shell5以上的版本(例如刚才下载的7)):
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
![image-20210310213026369](https://i-blog.csdnimg.cn/blog_migrate/ec48f76183c609abbe832d29abc12556.png)