LSRC(1) General Commands Manual LSRC(1)


lsrcshow dotfiles files managed by rcm


lsrc [-FhqVv] [-B hostname] [-d dir] [-I excl_pat] [-S excl_pat] [-t tag] [-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:
treat host-HOSTNAME as the host-specific directory instead of computing it based on the computer's hostname
-d DIR
list dotfiles from the DIR. This can be specified multiple times.
show symbols next to each file indicating status information. Supported symbols are @ 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.
show usage instructions.
-I excl_pat
include the files that match the given pattern. This is applied after any -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
symlink the directories that match the given pattern. See EXCLUDE PATTERN for more details. This option can be repeated. You may need to quote the pattern to prevent the shell from swallowing the glob.
-t TAG
list dotfiles according to TAG
show the version number.
increase verbosity. This can be repeated for extra verbosity.
decrease verbosity
-x excl_pat
exclude the files that match the given pattern. See EXCLUDE PATTERN for more details. This option can be repeated. Quote the pattern if it contains a valid shell glob.
files ...
only list the specified file(s)


The 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:


To ignore any bash_profile file, use the pattern:


Or more simply:


Since exclude patterns are often valid shell globs, be sure to quote them. See the caveats noted in BUGS when using an exclude pattern.


User configuration file. Defaults to ~/.rcrc.


~/.dotfiles ~/.rcrc


mkrc(1), rcdn(1), rcup(1), rcrc(5), rcm(7)


Mike Burns <>


There are a few bugs around shell globs. Anything involving an exclude pattern is unpredictable, so use -v when dealing with patterns. Specifically, globs may expand at any time and remain expanded for the duration of the run, which means they cannot be applied more than once. In addition, globs involving relative directory names do not work.
February 7, 2014 Linux 3.12-1-amd64