Windows Termina美化

安装Windows Termina

直接去windows store下载安装即可

安装wsl

直接去windows store下载安装,选ubuntu,预算充足的话可以考虑centos,网上也有资源可以安装centos但比较麻烦

ubuntu设置使用root用户登入系统

cd %HOMEPATH%\AppData\Local\Microsoft\WindowsApps
cd CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc
ubuntu2004.exe config --default-user root  # ubuntu2004.exe 根据实际修改

配置pwoershell

下载字体
https://github.com/be5invis/Sarasa-Gothic 或 http://yy2.gxkjbg.com:8080/font/2020/gshtwzb_jb51.rar
Sarasa Term 全部安装,也可以安装其他字体,看个人需求

##允许执行脚本
set-executionpolicy remotesigned

Install-Module git-aliases -AllowClobber
Install-Module posh-git
Install-Module oh-my-posh #
Install-Module DirColors  #让 ls (Get-ChildItem) 像 Unix 系终端一样具有多彩色

Import-Module DirColors
Import-Module posh-git
Import-Module oh-my-posh
Import-Module git-aliases -DisableNameChecking
Set-PoshPrompt -Theme PowerLine #这里需要注意,最新版本的oh-my-posh是这个命令,老版本的是Set-Theme PowerLine

$PROFILE
#讲上面Import和Set-PoshPrompt命令写到输出的文件中

Ubuntu安装oh-my-zsh

  apt-get install -y zsh
  apt install -y git
  wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
  chsh -s /usr/bin/zsh

修改~/.zshrc文件就可以更改主题
主题选择:https://github.com/ohmyzsh/ohmyzsh/wiki/External-themes
https://github.com/ohmyzsh/ohmyzsh/wiki/themes

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Michael·Ren

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值