summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorGravatar Mike Burns <mike@mike-burns.com>2013-08-01 16:06:30 -0400
committerGravatar Mike Burns <mike@mike-burns.com>2013-08-02 17:51:02 -0400
commit9e16a4aea0dad1909abc78b3f9bc1291917486db (patch)
treee8dfdebb79370c0b46aab71d805621f6fe5ee34c /man
parentfe3244ca9c8c9a38ea700851e36667b1015d11e6 (diff)
Add `mkrc -o` to install host-specific files
To make it easier to manage host-specific rc files, `mkrc` now supports a `-o` option. This causes the specified file to be added to the host section named for the current machine. This option is in conflict with the `-t` option.
Diffstat (limited to 'man')
-rw-r--r--man/mkrc.15
-rw-r--r--man/rcm.74
2 files changed, 5 insertions, 4 deletions
diff --git a/man/mkrc.1 b/man/mkrc.1
index 2d8bbdb..69e2a04 100644
--- a/man/mkrc.1
+++ b/man/mkrc.1
@@ -6,7 +6,7 @@
.Nd bless files into a dotfile
.Sh SYNOPSIS
.Nm mkrc
-.Op Fl vq
+.Op Fl vqo
.Op Fl t Ar tag
.Op Fl d Ar dir
.Ar files ...
@@ -27,6 +27,8 @@ install dotfiles according to tag
.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
.El
.Sh FILES
.Pa ~/.dotfiles
@@ -34,6 +36,7 @@ multiple times.
.Sh EXAMPLES
.Dl mkrc ~/.vimrc
.Dl mkrc -t zsh -d company-dotfiles ~/.zshrc ~/.zlogin
+.Dl mkrc -o ~/.rcrc
.Sh SEE ALSO
.Xr lsrc 1 ,
.Xr rcup 1 ,
diff --git a/man/rcm.7 b/man/rcm.7
index 54bb79a..05ebd90 100644
--- a/man/rcm.7
+++ b/man/rcm.7
@@ -203,9 +203,7 @@ file is a popular candidate for a host-specific file, since the tags and
dotfile directories listed in there are often specific to a single
machine.
.Pp
-.Dl mkdir .dotfiles/host-`hostname`
-.Dl mv .rcrc .dotfiles/host-`hostname`/rcrc
-.Dl rcup
+.Dl mkrc -o .rcrc
.
.Sh RATIONALE
.Pp