LSRC(1)
๐ lsrc โ show dotfiles files managed by rcm ๐
okay bestie, welcome to lsrc, a lil star from the General Commands Manual, section 1. this one's literally just here to list stuff for you. no cap.
โจ SYNOPSIS โจ
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 ...]
๐ฆ DESCRIPTION ๐ฆ
so like, this program lists all your configuration files โ both the sources chillin' in the dotfiles directories and the destinations over in your home directory. it's giving full picture, honestly.
if you wanna know the whole directory layout situation, go peek at rcup(1), specifically the โDIRECTORY LAYOUTโ section. it's all explained there, iykyk.
it supports these options, and yes we're doing all of them, no skipping:
-B HOSTNAMEโ treathost-HOSTNAMEas the host-specific directory instead of, like, computing it from the computer's actual hostname. main character override energy.-d DIRโ list dotfiles from theDIR. and guess what, you can say this multiple times. go off.-Fโ show lil symbols next to each file so you know the status. the supported ones are:@meaning it's a symlink,$meaning it's a symlinked directory, andXmeaning the file is a copy. want the deep lore on copied files and symlinked directories? it's inrcrc(5)under the docs forCOPY_ALWAYSandSYMLINK_DIRS, respectively. ๐-hโ show usage instructions. help a girl out.-I excl_patโ include the files matching the given pattern. this gets applied after any-xoptions. it uses the exact same pattern language as-x; more deets live in the โEXCLUDE PATTERNโ section below. heads up tho: you may have to quote the exclude pattern so your shell doesn't go evaluate the glob. ๐-S excl_patโ symlink the directories matching the given pattern. see โEXCLUDE PATTERNโ for more. this option can be repeated. and yeah, you might need to quote the pattern so the shell doesn't swallow your glob.-s excl_patโ if a directory matches the pattern, recur inside it instead of symlinking. see โEXCLUDE PATTERNโ. this is the literal opposite of-S, so you can use it to undo that, or to undo theSYMLINK_DIRSsetting in yourrcrc(5)config. it can be repeated, and yeah, quote the pattern so your shell doesn't eat it.-t TAGโ list dotfiles according toTAG. tag yourself, i'm the dotfiles.-U excl_patโ the rc files or directories matching this pattern will not be symlinked or created with a leading dot. see โEXCLUDE PATTERNโ for the details. this option can be repeated. quote the pattern so the shell doesn't nom the glob.-u excl_patโ if an rc file or directory matches the pattern, it must be dotted. see โEXCLUDE PATTERNโ. this is the opposite of-U, so you can use it to undo that one, or to undo theUNDOTTEDsetting in yourrcrc(5)config. repeatable! quote it! protect the glob!-Vโ show the version number. gotta know what era we're in.-vโ increase verbosity. and you can repeat it for extra verbosity. louder. LOUDER.-qโ decrease verbosity. shhh. ๐คซ-x excl_patโ exclude the files matching the given pattern. see โEXCLUDE PATTERNโ for more. this option can be repeated. quote the pattern if it contains a valid shell glob, bestie.files ...โ only list the specified file(s). that's it. that's the filter.
๐ EXCLUDE PATTERN ๐
okay this part is important so lock in. an exclude pattern is a colon-separated pair of a dotfiles directory and a file glob. the dotfiles directory part is optional, and if you leave it out it defaults to * โ which is a special token that matches any dotfiles directory. the file glob is relative to the dotfiles directory, and it ignores meta directories. a colon is what glues them together.
for example, to ignore all emacs-related items from the thoughtbot-dotfiles directory, use this exclude pattern:
thoughtbot-dotfiles:*emacs*
to ignore any bash_profile file, use this pattern:
*:bash_profile
or, more simply:
bash_profile
and since exclude patterns are often valid shell globs, be sure to quote them. also check the caveats noted in โBUGSโ when you're using an exclude pattern. forewarned is forearmed, fr fr.
๐ธ ENVIRONMENT ๐ธ
RCRCโ user configuration file. defaults to~/.rcrc. she lives there. that's her home.
๐ FILES ๐
~/.dotfiles
~/.rcrc
๐ SEE ALSO ๐
mkrc(1), rcdn(1), rcup(1), rcrc(5), rcm(7)
the whole friend group, honestly. slay.
๐ AUTHORS ๐
lsrc is maintained by Mike Burns <mburns@thoughtbot.com> and thoughtbot: http://thoughtbot.com
protect them at all costs ๐ซถ
๐ BUGS ๐
for macOS systems, we strongly encourage the use of theHOSTNAMEvariable in yourrcrc(5).
here's why, bestie: we use the hostname(1) program to figure out the unique identifier for the host. and that program is not specified by POSIX and can vary by system. on macOS the hostname is genuinely unpredictable โ it can even change as part of the DHCP handshake. ๐ญ so yeah. set the variable. save yourself.
that's the whole page!! written by the rcm crew, sourced from Debian, dated December 23, 2016, and filed under LSRC(1) in the General Commands Manual. periodt. ๐
โจ
๐ฆ where this page comes from
- alpine 3.24: rcm-doc 1.3.6-r0 ยท BSD-3-Clause
- epel 9: rcm 1.3.6-1.el9 ยท BSD
- fedora 43: rcm 1.3.6-9.fc43 ยท LicenseRef-Callaway-BSD
- fedora 44: rcm 1.3.6-10.fc44 ยท LicenseRef-Callaway-BSD
- nixos 26.05: rcm 1.3.6
- nixpkgs unstable: rcm 1.3.6
- opensuse-leap 16.0: rcm 1.3.6-bp160.1.9 ยท BSD-3-Clause
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms