3 Star 11 Fork 21

老汤 / oh-my-posh

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

windows配置终端

自愿选择配置。

效果展示

Powershelll

image-20220104181430698

Cmd

image-20220104181451893

Windows Terminal效果展示

Windows Terminal使用的也是系统的Powershell和cmd

image-20220104181514630

image-20220104181534431

下载所需软件

百度网盘:链接: https://pan.baidu.com/s/1me5UMeSolXBhyjZE72_RXw 提取码: 6pql

配置Powershell

安装美化插件oh my posh

从网盘下载资料后,找到 soft 文件夹,将里面的 WindowsPowerShell 文件夹,复制到 "文档"

image-20220104182505464

此时,打开powershell,会显示如下效果:

image-20220104201344050

oh my posh主题一览表

M365Princess

M365Princess

agnoster#

image-20220104191632958

agnosterplus#

agnosterplus

aliens#

aliens

amro#

amro

atomic#

atomic

atomicBit#

atomicBit

avit#

avit

blue-owl#

blue-owl

blueish#

blueish

bubbles#

bubbles

bubblesline#

image-20220104191743502

capr4n#

image-20220104191758492

cert#

image-20220104191814006

cinnamon#

image-20220104191828128

clean-detailed#

image-20220104191844179

cloud-native-azure#

image-20220104191857889

craver#

image-20220104191911873

darkblood#

image-20220104191924274

emodipt#

image-20220104191935657

festivetech#

image-20220104191954352

fish#

image-20220104192005985

gmay#

image-20220104192018026

grandpa-style#

image-20220104192028876

half-life#

image-20220104192041141

honukai#

image-20220104192103926

hotstick.minimal#

image-20220104192115641

hunk#

image-20220104192128753

huvix#

image-20220104192139629

iterm2#

image-20220104192149448

jandedobbeleer#

image-20220104192217170

jblab_2021#

image-20220104192228452

jonnychipz#

image-20220104192241278

jtracey93#

image-20220104192252024

jv_sitecorian#

image-20220104192302843

lambda#

image-20220104192313493

marcduiker#

image-20220104192325463

material#

image-20220104192337190

microverse-power#

image-20220104192346982

mojada#

image-20220104195521068

mt#

image-20220104195545176

negligible#

image-20220104195605297

night-owl#

image-20220104195630843

nordtron#

image-20220104195727008

nu4a#

image-20220104200022809

paradox#

image-20220104200035654

pararussel#

pararussel

patriksvensson#

patriksvensson

pixelrobots#

pixelrobots

plague#

plague

powerlevel10k_classic#

powerlevel10k_classic

powerlevel10k_lean#

powerlevel10k_lean

powerlevel10k_modern#

powerlevel10k_modern

powerlevel10k_rainbow#

powerlevel10k_rainbow

powerline#

powerline

pure#

pure

remk#

remk

robbyrussel#

robbyrussel

rudolfs-dark#

rudolfs-dark

rudolfs-light#

rudolfs-light

slim#

slim

slimfat#

slimfat

smoothie#

smoothie

sorin#

sorin

space#

space

spaceship#

spaceship

star#

star

stelbent.minimal#

stelbent.minimal

thecyberden#

thecyberden

tonybaloney#

tonybaloney

unicorn#

unicorn

wopian#

wopian

xtoys#

xtoys

ys#

ys

zash#

zash

设置主题

选择一个喜欢的主题

用记事本打开 文档/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 文件.

如下:

image-20220104201731753

比如设置了agnoster 主题.

image-20220104210702502

重新打开 powershell,效果如下:

image-20220104210559574

之所以显示上述效果,是因为powershell使用的字体,不支持图标.

所以下一步,更换字体.

设置powershell的字体

安装字体

终端中有些图标,必须使用支持的字体才能显示.

**字体,网盘中准备了一个.**如果喜欢其他字体,可以去 https://www.nerdfonts.com/font-downloads 下载.

选中所有字体,鼠标右键,进行安装.

注意,不是所有字体都可以使用. 必须使用等宽字体.

劝君不要费时间去找字体了。我已经试过很多了,没太好的。。。

设置powershell字体

在powershell的标题位置,鼠标右键,属性,字体.选择前面安装的字体.

image-20220104210925183

找到字体进行设置.

image-20220104211125893

设置后效果:

image-20220104211154104

配置Cmd(选配)

安装 clink

找到soft文件夹中的 clink.1.3.1.d30655_setup.exe,双击安装,不想安装到C盘,可以安装到D盘.

复制配置文件

将soft文件夹中的 clink_start.cmdoh-my-posh.lua 两个文件复制到clink安装目录中.

image-20220104212847325

修改配置

用vscode或者记事本打开复制之后的 oh-my-posh.lua ,修改里面的两个路径.

  • 路径只修改用户名即可.(打开C盘,用户,里面有一个文件夹就是你的用户名)
  • 主题,随你喜欢。(前面的主题名字都有)

image-20220104213404855

设置字体

和powershell同样,设置cmd 的字体.

安装Windows Terminal

Windows terminal就是一个外壳,实际使用的终端,还是powershell或cmd.

windows商店中搜索 Windows terminal,安装

安装时,可能会让你登录microsoft账号,有账号就登录一下,没有点击否也行.

安装后重启,即可集成到右键菜单中.

image-20220104214154950

同样,需要设置Windows terminal的字体,不过非常简单.

image-20220104214324068

选择字体

image-20220104214429141

vscode终端设置字体

使用了oh my posh后,vscode终端字体也需要对应的改变.

vscode --> 设置

image-20220104231557547

搜索"字体", 选择"终端",设置字体即可.

image-20220104231949507

至于字体名称叫什么,打开你使用的字体即可看到.

image-20220104214833887

空文件

简介

windows终端配置 展开 收起
PowerShell 等 2 种语言
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/laotang1234/oh-my-posh.git
git@gitee.com:laotang1234/oh-my-posh.git
laotang1234
oh-my-posh
oh-my-posh
master

搜索帮助