我必须编辑 ~/.profile 并将此代码放入其中以使文件夹颜色。
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
Run Code Online (Sandbox Code Playgroud)
我用它来制作自定义光标:
PS1='\[\033[01;32m\]\u@macair\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
Run Code Online (Sandbox Code Playgroud)
希望这可以帮助。
对于vim,使用像这样的主题
并添加 2 个文件夹,~/.vim 和 ~/.vim/colors
将主题文件放在 ~/.vim/colors 文件夹中
然后创建一个名为 ~/.vimrc 的文件,如下所示:
syntax on 'this is needed to see syntax
set background=dark "makes it easier to read with black background
colorscheme ir_black "set theme in ./vim/colors folder
set ls=2 " allways show status line
set hlsearch " highlight searches
"set incsearch " do incremental searching
set ruler " show the cursor position all the time
set visualbell t_vb= " turn off error beep/flash
set ignorecase "ignore case while searching
set number 'put numbers on side
Run Code Online (Sandbox Code Playgroud)
我添加了评论,以便您可以挑选您想要的。此外,我最终调整了主题。它使评论变灰,而且太难阅读。
归档时间: |
|
查看次数: |
11048 次 |
最近记录: |