UNIXでは、多くのファイル拡張子の前にドットは含まれていませんbashrc
。bash.rc
ssh_config
ssh.config
_config
また、dircolorルールを追加したいと思います。しかし、次の行を追加すると:
_config 01;31
エラーが発生します。dircolors: `/etc/dircolors':126: unrecognized keyword _config
_ext
dircolorsに拡張機能を追加できますか?
ベストアンサー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.