前言

刚装完Centos的虚拟机,进入后发现文件夹的颜色非常难以看清,所以装了Solarized的主题。在网上找了一些资料,装时又遇到了点问题,把问题总结一下。

正文

前提软件:

git

1,在用户目录下创建文件夹(目录随便)

mkdir ~/solarized

2,下载Solarized配色方案

cd ~/solarized
git clone git://github.com/seebi/dircolors-solarized.git

下载完配色方案后,在~/solarized/dircolors-solarized 下有4个配色方案可以被选择

  • dircolors.256dark
  • dircolors.ansi-dark
  • dircolors.ansi-light
  • dircolors.ansi-universal

可以使用下面的命令看每个方案的效果。执行完下面的命令后,需要使用ls 命令看一下文件夹的效果,所以执行ls 命令时,一定要有目录。

eval `dircolors ~/solarized/dircolors-solarized/dircolors.ansi-light`

选好了方案后,在.bashrc 文件中,加入上面的eval 命令(主要目的是在开机后执行,所以在.bash_profile 文件也行)。(在这个地方遇到了问题,花了点时间)
上面的discolors 是Linux的命令。


2,下载Solarized主题。下载完后,在solarized文件夹内就会有一个gnome-terminal-colors-solarized 文件夹。

cd solarized
git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git  

下载后,进入~/solarized/gnome-terminal-colors-solarized 目录。可以看到一些文件,执行下面两个文(例如:./set_dark.sh)件来选择喜欢的方案。

  • set_dark.sh
  • set_light.sh

执行时会有提示,第一个提示选择yes,第二提示直接回车就行。

参考:
终端配置:色彩与字体
Solarized Linux

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分支:26 天前 )
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

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

更多推荐