Windows添加在此处打开终端

请注意,本文编写于  1,012  天前,最后编辑于  1,002  天前,内容可能已经不具有时效性,请谨慎参考。

Windows添加在此处打开终端

Linux下,ubuntu等系统可以直接在文件夹右键->在此处打开终端,能够非常方便的进入终端下的此目录,但是windows没有自带这个功能,因此我们只好自己配置

1.脚本获取

该脚本github地址

https://github.com/lextm/windowsterminal-shell

2.安装

安装Windows Terminal

可以直接在Microsoft Store获取
image.png

安装powershell7

可以在该网址获取powershell7的安装包
https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-windows?view=powershell-7

运行脚本

可以看到之前github获取的文件有以下这些
image.png

然后以管理员模式运行刚才安装的powershell
image.png

Default layout

./install.ps1

image.png

Flat layout

./install.ps1 flat

image.png

Mini layout

./install.ps1 mini

image.png

3.卸载

运行

./uninstall.ps1

或者

./uninstall.old.ps1

即可卸载完成