allow datafile location to be overriden

This commit is contained in:
rupa committed 2011-08-06 22:46:15 -04:00
1 parent af890aea59
commit 763445330e
3 files changed
+20 -15

No files matched your search

+10 -7
View File
@@ -39,14 +39,16 @@ directory that matches ALL of the regexes given on the command line.
\fBInstallation:\fR
.P
optionally:
set \fB$_Z_CMD\fR in .bashrc/.zshrc to change the command (default \fBz\fR).
Optionally:
Set \fB$_Z_CMD\fR in .bashrc/.zshrc to change the command (default \fBz\fR).
.br
Set \fB$_Z_DATA\fR to change the datafile (default \fB$HOME/.z\fR).
.P
put something like this in your \fB$HOME/.bashrc\fR:
Put something like this in your \fB$HOME/.bashrc\fR:
.P
\fB. /path/to/z.sh\fR
.P
put something like this in your \fB$HOME/.zshrc\fR:
Put something like this in your \fB$HOME/.zshrc\fR:
.P
\fB. /path/to/z.sh
function precmd () {
@@ -57,8 +59,8 @@ put something like this in your \fB$HOME/.zshrc\fR:
.P
PROFIT!!
.P
optionally:
install the provided man page \fBz.1\fR somewhere like \fB/usr/local/man/man1\fB.
Optionally:
Install the provided man page \fBz.1\fR somewhere like \fB/usr/local/man/man1\fB.
.br
\fBAging:\fR
@@ -109,7 +111,8 @@ An alias \fB$_Z_CMD\fR='_z 2>&1' is defined. If not set, \fB$_Z_CMD\fR defaults
to \fBz\fR.
.SH FILES
data is stored in \fB$HOME/.z\fR
Data is stored in \fB$_Z_DATA\fR. If not set, \fB$_Z_DATA\fR defaults to
\fB$HOME/.z\fR
.P
A man page (\fBz.1\fR) is provided.