ls_colors


Ⅰ. 插件描述

A collection of LS_COLORS definitions; needs your contribution!

Ⅱ. 基本信息

创建日期:  2011-04-09
使用用户:  2
Github星:  1119
插件作者:  magnus woldrich

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'trapd00r/ls-colors'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'trapd00r/ls-colors'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'trapd00r/ls-colors'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/trapd00r/ls_colors

Ⅳ. 文档说明

### Table of contents

LS_COLORS

This is a collection of extension:color mappings, suitable to use as your
LS_COLORS environment variable. Most of them use the extended color map,
described in the ECMA-48 document; in other words, you'll need a terminal
with capabilities of displaying 256 colors.

As of this writing, around 300 different filetypes/extensions is supported.
That's indeed a lot of extensions, but there's a lot more! Your help is greatly
appreciated.

Fork this project on github, add the extensions you are missing, and send a pull
request.

Some guidelines:

For files that usually ends up next to each other, like html, css and js,
try to pick colors that fits in nicely together. Filetypes with multiple
possible extensions, like htm and html, should have the same color.

What does it look like?

Here's a screenshot _(font and minor color shades, of course, depend on terminal and its configuration)_:

Screenshot1

Installation

An installation script is provided with this repository:

$ wget https://raw.github.com/trapd00r/LS_COLORS/master/LS_COLORS -O /tmp/LS_COLORS
$ ( cd /tmp/LS_COLORS && sh /tmp/LS_COLORS/install.sh )
To enable the colors, add the following line to your shell's start-up script:

For Bourne shell (e.g. ~/.bashrc or ~/.zshrc):
  . /lscolors.sh"

For C shell (e.g. ~/.cshrc):
  . /lscolors.csh"
$

Arch Linux

Arch Linux users can install the lscolors-git package from the AUR for easy
integration with bash, csh, or zsh.

Information for Developers

There's a library I've written that lets you use various LS COLORS on
arbitrary files and directories. A simple implementation can be found here.

Using this, you can do

find $HOME -maxdepth 1  | ls_color

mpc search artist Laleh | ls_color

... and so on.

Legal

© Copyright 2014-2020 Magnus Woldrich.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the Perl Artistic License for more details.

This program is free software: you can redistribute it and/or modify it under
the terms of the Perl Artistic License as published by the Perl Foundation,
either version 1.0 of the License, or (at your option) any later version.

You should have received a copy of the Perl Artistic License along
with this program. If not, see http://www.perlfoundation.org/artistic_license_1_0.

添加新评论