dircolors:_extの規則(.extの代わりに)

dircolors:_extの規則(.extの代わりに)

UNIXでは、多くのファイル拡張子の前にドットは含まれていませんbashrcbash.rcssh_configssh.config

_configまた、dircolorルールを追加したいと思います。しかし、次の行を追加すると:

_config 01;31

エラーが発生します。dircolors: `/etc/dircolors':126: unrecognized keyword _config

_extdircolorsに拡張機能を追加できますか?

ベストアンサー1

を使用してこれを行うことができます*_config 01;31

からman 5 dir_colors

*extension color-sequence
    Specifies the color used for any file that ends in extension.

.extension color-sequence
    Same as *.extension. Specifies the color used for any file that ends
    in .extension. Note that the period is included in the extension, which
    makes it impossible to specify an extension not starting with a period,
    such as ~ for emacs backup files. This form should be considered obsolete.

おすすめ記事