MacOs用户配置自定义的终端页面

MacOs用户配置自定义的终端页面

1. 查看本地zsh版本

zsh --version

2.安装Oh my zsh

有两种方式安装

  1. curl安装

    gitHub

    sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    

    gitee(国内镜像),我使用此镜像文件

sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"

2.wget安装

gitHub

	sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

gitee(国内镜像)

sh -c "$(wget -O- https://gitee.com/pocmon/mirrors/raw/master/tools/install.sh)"

安装完成知道出现大字 Oh my zsh即可表示完成安装

卸载Oh My zsh

uninstall_oh_my_zsh

3.安装主题

终端直接输出指令进入配置文件

vim ~/.zshrc

找到

ZSH_THEME="xxxxx"

这里我使用的是

ZSH_THEME="risto"

你可以可以使用随机主题(每次打开终端主题都会随机变化)

ZSH_THEME="random"

还有自定义主题powerlevel10k

下载:

git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

下载此主题可根据个人爱好设置,懒人可选Q就行

ZSH_THEME="powerlevel10k/powerlevel10k"

好用插件(终端指令提示)

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

然后进入

vim ~/.zshrc

找到plugins=(git)此行配置

修改为

plugins=(git zsh-autosuggestions zsh-syntax-highlighting autojump)

即可使用插件

4.拓展:

针对Iterm2+on my zsh+powerlevel10k

配置文体

https://aur.archlinux.org/packages/ttf-meslo-nerd-font-powerlevel10k

点击下载此版本
请添加图片描述
选择此版本
在这里插入图片描述

Mac用户下载完成后只需要导入电脑字体中就行

然后在Iterm2中找到iterm2/preferences/prfiles/text/Font/MesloLGS Nf即可完成字体导入
请添加图片描述

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

"匠"人

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

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

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

打赏作者

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

抵扣说明:

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

余额充值