Terminal 默认是没有颜色区分的,打开也好整,只需要设置一下

参阅:https://stackoverflow.com/questions/1550288/os-x-terminal-colors

before setup


方法

编辑自己用户目录下的 .bash_profile 文件,如果没有,新建一个就好

export CLICOLOR=1 # 打开颜色区分显示
export LSCOLORS=Gxfxcxdxbxegedabagacad  # 颜色显示的格式

关于颜色,可以自定义,通过这个网站可以快速编辑颜色方案

https://geoff.greer.fm/lscolors/

编辑完这个文件后执行下面指令使其生效

source .bash_profile

然后打开 Terminal 的设置窗口Preferences > Profiles > Display ANSI Colors (我用的英文,如果你是中文,看图)
terminal perf


效果

在这里插入图片描述

GitHub 加速计划 / term / terminal
94.53 K
8.17 K
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:25 天前 )
bc6f3e22 The underlying issue is that the "Pane" is used both as a model and as a UI element and so a pane loses its content as soon as it is closed, but the tree only gets reordered after the animation has finished. This PR is truly just a hotfix, because it doesn't solve this issue, it only adds checks to the function that crashes. Closes #17869 Closes #17871 ## Validation Steps Performed * `Split pane` a few times * Run the "Close all other panes" action * Doesn't crash ✅ 6 天前
6196a3d0 7 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐