diff options
author | Mike Burns <mike@mike-burns.com> | 2013-08-05 06:15:17 +0200 |
---|---|---|
committer | Mike Burns <mike@mike-burns.com> | 2013-08-05 06:15:17 +0200 |
commit | fc648042ca2e753b8ecdabc5fa52aea5313c3b03 (patch) | |
tree | e69c2dba330066ef1ddc5725d97ab0b336ef5783 /man | |
parent | 122bbf0c6da226fc7e8a7e2a8d173b3e6259f7cf (diff) |
Add -C for copying files
Some files prefer to be copies instead of symlinks---for example,
OpenSSH ignores symlinks. Add the `-C` option to mkrc(1) and rcup(1) to
handle this.
mkrc -C .ssh
rcup -C ssh
This does raise a synchronization problem that I do not yet know how to
solve; namely, what to do when the rc file changes. Perhaps a `rcsync`
command is in order; perhaps `rcup` should handle this; perhaps `rcsync`
is a better name for `rcup`.
Diffstat (limited to 'man')
-rw-r--r-- | man/mkrc.1 | 18 | ||||
-rw-r--r-- | man/rcup.1 | 8 |
2 files changed, 16 insertions, 10 deletions
@@ -6,7 +6,7 @@ .Nd bless files into a dotfile .Sh SYNOPSIS .Nm mkrc -.Op Fl vqo +.Op Fl Cvqo .Op Fl t Ar tag .Op Fl d Ar dir .Ar files ... @@ -18,17 +18,20 @@ different source directory. It supports these options: . .Bl -tag -.It Fl v -increase verbosity. This can be repeated for extra verbosity. -.It Fl q -decrease verbosity -.It Fl t Ar TAG -install dotfiles according to tag +.It Fl C +copy instead of symlinking when installing the rc file back into your +home directory .It Fl d Ar DIR install dotfiles under the specified directory. This can be specified multiple times. .It Fl o install dotfiles into the host-specific directory +.It Fl q +decrease verbosity +.It Fl t Ar TAG +install dotfiles according to tag +.It Fl v +increase verbosity. This can be repeated for extra verbosity. .El .Sh FILES .Pa ~/.dotfiles @@ -37,6 +40,7 @@ install dotfiles into the host-specific directory .Dl mkrc ~/.vimrc .Dl mkrc -t zsh -d company-dotfiles ~/.zshrc ~/.zlogin .Dl mkrc -o ~/.rcrc +.Dl mkrc -C .ssh .Sh SEE ALSO .Xr lsrc 1 , .Xr rcdn 1 , @@ -6,7 +6,7 @@ .Nd update and install dotfiles .Sh SYNOPSIS .Nm rcup -.Op Fl fiqv +.Op Fl Cfiqv .Op Fl d Ar dir .Op Fl e Ar excl_pat .Op Fl I Ar excl_pat @@ -25,10 +25,12 @@ for details on the directory layout. .Pp It supports these options: .Bl -tag +.It Fl C +copy the files instead of symlinking them .It Fl d Ar DIR install dotfiles from the -.Ar DIR -\&. This can be specified multiple times. +.Ar DIR . +This can be specified multiple times. .It Fl e Ar EXCL_PAT do not install rc files that match .Ar EXCL_PAT . |