这款软件可以很方便的让我们对原始从CMD界面进行优化,适用于命令行工具与命令提示符,PowerShell和WSL等shell用户。在window自带的Microsoft Strore商城中,搜索windows terminal就可以直接进行下载 3.安装PowerShell工具 posh-git是继承了Git的PowerShell脚本,Oh-My-Posh 可以为 PowerShell 提示符提供主题功能。这两个工具...
Oh-My-Posh 2主要是为PowerShell提示符提供主题功能。另外如果需要Powerline,还需安装Posh-Git将Git状态信息添加到提示,并为Git命令、参数、远程和分支名称添加tab自动补全。 Oh-My-Posh 3本身已经支持Powerline,不需要额外下载posh-git。 Powerline是一个常用的命令行插件,提供自定义的命令提示符体验,提供Git状态颜...
3.安装PowerShell工具 posh-git是继承了Git的PowerShell脚本,Oh-My-Posh 可以为 PowerShell 提示符提供主题功能。这两个工具可以让我们更好的对主题进行配置与优化 使用PowerShell安装工具命令如下 Install-Module posh-git-Scope CurrentUser Install-Module oh-my-posh-Scope CurrentUser 4.进入Windows终端官网,开始...
3.安装PowerShell工具 posh-git是继承了Git的PowerShell脚本,Oh-My-Posh 可以为 PowerShell 提示符提供主题功能。这两个工具可以让我们更好的对主题进行配置与优化 使用PowerShell安装工具命令如下 Install-Module posh-git -Scope CurrentUser Install-Module oh-my-posh -Scope CurrentUser 打开官网之后,我们可以看到...
Import-Module posh-git# 引入 posh-gitImport-Module oh-my-posh# 引入 oh-my-poshSet-Theme Paradox# 设置主题为 ParadoxSet-PSReadLineOption -PredictionSource History# 设置预测文本来源为历史记录Set-PSReadlineKeyHandler -Key Tab -Function Complete# 设置 Tab 键补全Set-PSReadLineKeyHandler -Key"Ctrl+d"...
posh-git:https://github.com/dahlbyk/posh-git console/ISE $PSVersionTable # version netstat -ano|grep 1080 # 查看端口暂用情况 # minikube choco install minikube minikube start --vm-driver="hyperv" --memory=4096 --registry-mirror=https://registry.docker-cn.com --hyperv-virtual-switch="miniku...
Install-Module oh-my-posh 复制代码 安装完成后,输入 Import-Module posh-git Import-Module oh-my-posh Set-Theme PowerLine 复制代码 如果出现以下报错 无法加载文件 C:\Users\Hong\Documents\WindowsPowerShell\Microsoft.PowerShell _profile.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 http://go....
$settings=$global:GitPromptSettings # Revert to original WindowTitle, but only if posh-git is currently configured to set it if($HostSupportsSettingWindowTitle-and$OriginalWindowTitle-and$settings.WindowTitle){ Write-Debug"Resetting WindowTitle: '$OriginalWindowTitle'" ...
Install-Module -Scope CurrentUser posh-docker 安装完成后,只能为当前PowerShell启用自动完成功能,输入:Import-Module posh-docker 为了在所有PowerShell会话中保持Tab完成状态$PROFILE,请在PowerShell提示符处输入: if (-Not (Test-Path $PROFILE)) {
load(io.popen('oh-my-posh --config="D:/Scoop/persist/oh-my-posh3/themes/powerlevel10k_rainbow.omp.json" --init --shell cmd'):read("*a"))() 这是两个比较好看的皮肤 安装StarShip,配置cmd样式 You need to useClink (opens new window)(v1.2.30+) with Cmd. Add the following to a fi...