| 1 |
.Dd April 13, 2020 |
| 2 |
.Dt MKRC 1 |
| 3 |
.Os |
| 4 |
.Sh NAME |
| 5 |
.Nm mkrc |
| 6 |
.Nd bless files into a dotfiles managed by rcm |
| 7 |
.Sh SYNOPSIS |
| 8 |
.Nm mkrc |
| 9 |
.Op Fl ChoqSsVvUukK |
| 10 |
.Op Fl t Ar tag |
| 11 |
.Op Fl d Ar dir |
| 12 |
.Op Fl B Ar hostname |
| 13 |
.Ar files ... |
| 14 |
.Sh DESCRIPTION |
| 15 |
This program adds files to your dotfiles directory then update them |
| 16 |
back into your home directory. It can install files under a tag or |
| 17 |
install them in a different source directory. Remember to first create |
| 18 |
standard rc files, then use |
| 19 |
.Nm |
| 20 |
on them. |
| 21 |
. |
| 22 |
.Pp |
| 23 |
. |
| 24 |
It supports these options: |
| 25 |
. |
| 26 |
.Bl -tag -width "-d DIR" |
| 27 |
.It Fl B Ar HOSTNAME |
| 28 |
use the supplied hostname instead of computing one. Implies |
| 29 |
.Fl o . |
| 30 |
.It Fl C |
| 31 |
copy instead of symlinking when installing the rc file back into your |
| 32 |
home directory. This will prevent future updates in the dotfiles directory for |
| 33 |
added element, and its contents if it is a directory. |
| 34 |
.It Fl d Ar DIR |
| 35 |
install dotfiles under the specified directory. Use only once to override |
| 36 |
DOTFILES_DIRS value from RCRC and the absolute default value. |
| 37 |
.It Fl h |
| 38 |
show usage instructions. |
| 39 |
.It Fl o |
| 40 |
install dotfiles into the host-specific directory. |
| 41 |
.It Fl q |
| 42 |
decrease verbosity. |
| 43 |
.It Fl S |
| 44 |
treat the specified rc files as files to be symlinked, even if they are |
| 45 |
directories. |
| 46 |
.It Fl s |
| 47 |
if the rc file is a file, symlink it; otherwise, make a directory |
| 48 |
structure as described in |
| 49 |
.Xr rcup 1 |
| 50 |
in the section |
| 51 |
.Sx ALGORITHM . |
| 52 |
This is the default. |
| 53 |
.It Fl t Ar TAG |
| 54 |
install dotfiles according to tag |
| 55 |
.It Fl U |
| 56 |
the specified files or directories are to be installed without a leading |
| 57 |
dot. |
| 58 |
.It Fl u |
| 59 |
the specified files or directories are to be installed with a leading dot. This |
| 60 |
is the default. |
| 61 |
.It Fl v |
| 62 |
increase verbosity. This can be repeated for extra verbosity. |
| 63 |
.It Fl V |
| 64 |
show the version number. |
| 65 |
.It Fl k |
| 66 |
pass -k to rcup when installing the made rc file. This option enables pre- and |
| 67 |
post-hooks, which is the default, making this effectively a no-op. See the |
| 68 |
.Sx ALGORITHM |
| 69 |
section in |
| 70 |
.Xr rcup 1 . |
| 71 |
.It Fl K |
| 72 |
pass -K to rcup when installing the made rc file. This option prevents pre- and |
| 73 |
post-up hooks from running as part of creating the rc file. See the |
| 74 |
.Sx ALGORITHM |
| 75 |
section in |
| 76 |
.Xr rcup 1 . |
| 77 |
.El |
| 78 |
.Sh ENVIRONMENT |
| 79 |
.Bl -tag -width ".Ev RCRC" |
| 80 |
.It Ev RCRC |
| 81 |
User configuration file. Defaults to |
| 82 |
.Pa ~/.rcrc . |
| 83 |
.El |
| 84 |
.Sh FILES |
| 85 |
.Pa ~/.dotfiles |
| 86 |
.Pa ~/.rcrc |
| 87 |
.Sh EXAMPLES |
| 88 |
.Dl mkrc ~/.vimrc |
| 89 |
.Dl mkrc -t zsh -d company-dotfiles ~/.zshrc ~/.zlogin |
| 90 |
.Dl mkrc -o ~/.rcrc |
| 91 |
.Dl mkrc -C .ssh |
| 92 |
.Dl mkrc -S .zpretzo |
| 93 |
.Dl mkrc -U bin |
| 94 |
.Sh SEE ALSO |
| 95 |
.Xr lsrc 1 , |
| 96 |
.Xr rcdn 1 , |
| 97 |
.Xr rcup 1 , |
| 98 |
.Xr rcrc 5 , |
| 99 |
.Xr rcm 7 |
| 100 |
.Sh AUTHORS |
| 101 |
.Nm |
| 102 |
is maintained by |
| 103 |
.An "Mike Burns" Aq Mt [email protected] |
| 104 |
and |
| 105 |
.Lk http://thoughtbot.com thoughtbot |