linux 也可安装 Zsh 后使用此套配置。 1. 安装 Oh My Zsh sh -c "$(curl -fsSL https://raw.GitHubusercontent.com/ohmyzs
linux 也可安装 Zsh 后使用此套配置。
sh -c "$(curl -fsSL https://raw.GitHubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
~/.zshrc
,原内容: ZSH_THEME="robbyrussell"
替换为: ZSH_THEME="agnoster"
git clone Https://github.com/powerline/fonts.git --depth=1cd fonts./install.shcd ..rm -rf fonts
Source Code Pro for Powerline
;Visual Studio Code 可保留原有字体配置,添加新字体即可,注意名称两边包上单引号~/.zshrc
,添加一行内容: export DEFAULT_USER=$USER
,隐藏显示用户名和主机名git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
~/.zshrc
,原内容: plugins=(git)
替换为: plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
~/.vimrc
, 开启语法和搜索高亮及行号显示syntax onset hlsearchset number
来源地址:https://blog.csdn.net/dongsong1117/article/details/131959058
--结束END--
本文标题: Mac 终端美化显示
本文链接: https://www.lsjlt.com/news/410900.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-01-21
2023-10-28
2023-10-28
2023-10-27
2023-10-27
2023-10-27
2023-10-27
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0