LSRC(1) | General Commands Manual | LSRC(1) |
lsrc
— show
dotfiles files managed by rcm
lsrc |
[-FhqVv ] [-B
hostname] [-d
dir] [-I
excl_pat] [-S
excl_pat] [-s
excl_pat] [-t
tag] [-U
excl_pat] [-u
excl_pat] [-x
excl_pat] [files ...] |
This program lists all configuration files, both the sources in the dotfiles directories and the destinations in your home directory. See rcup(1), the DIRECTORY LAYOUT section, for details on the directory layout. It supports these options:
-B
HOSTNAME-d
DIR-F
@
which indicates that the file is a
symlink, $
which indicates it's a symlinked
directory, and X
to indicate that the file is a
copy. More details on copied files and symlinked directories can be found
in rcrc(5) under the documentation on
COPY_ALWAYS and SYMLINK_DIRS,
respectively.-h
-I
excl_pat-x
options. It uses the same pattern language as
-x
; more details are in the
EXCLUDE PATTERN section. Note
that you may have to quote the exclude pattern so the shell does not
evaluate the glob.-S
excl_pat-s
excl_pat-S
option, and can be used to undo it or the
SYMLINK_DIRS setting in your
rcrc(5) configuration. It can be repeated, and the
pattern may need to be quoted to protect it from your shell.-t
TAG-U
excl_pat-u
excl_pat-U
option,
and can be used to undo it or the UNDOTTED setting
in your rcrc(5) configuration. This option can be
repeated. You may need to quote the pattern to prevent the shell from
swallowing the glob.-V
-v
-q
-x
excl_patThe exclude pattern specifies a colon-separated pair of dotfiles
directory and file glob. The dotfiles directory is optional and, if omitted,
defaults to *
, which is a special token that matches
any dotfiles directory. The file glob is relative to the dotfiles directory,
ignoring meta directories. A colon combines them.
For example, to ignore all emacs-related items from the thoughtbot-dotfiles directory, use the exclude pattern:
thoughtbot-dotfiles:*emacs*
To ignore any bash_profile file, use the pattern:
*:bash_profile
Or more simply:
bash_profile
Since exclude patterns are often valid shell globs, be sure to quote them. See the caveats noted in BUGS when using an exclude pattern.
RCRC
~/.dotfiles ~/.rcrc
lsrc
is maintained by
Mike Burns
<mburns@thoughtbot.com>
and thoughtbot
December 23, 2016 | Debian |