docs
README also removes zsh backward incompatibility warning
This commit is contained in:
1 parent
8ed575354b
commit
61c4b1f8c0
3 files changed
+9
-24
No files matched your search
@@ -1,23 +1,3 @@
|
||||
*******************************************************************************
|
||||
* *
|
||||
* ZSH USERS BACKWARD COMPATIBILITY WARNING *
|
||||
* *
|
||||
* z now handles 'precmd' set up for zsh. Current users using zsh should *
|
||||
* remove the precmd function that was described in the installation *
|
||||
* instructions for previous versions. *
|
||||
* *
|
||||
* In short, this: *
|
||||
* . /path/to/z.sh *
|
||||
* function precmd () { *
|
||||
* _z --add "$(pwd -P)" *
|
||||
* } *
|
||||
* should now just be: *
|
||||
* . /path/to/z.sh *
|
||||
* *
|
||||
* ZSH USERS BACKWARD COMPATIBILITY WARNING *
|
||||
* *
|
||||
*******************************************************************************
|
||||
|
||||
Z(1) User Commands Z(1)
|
||||
|
||||
|
||||
@@ -72,6 +52,7 @@ NOTES
|
||||
Set $_Z_DATA to change the datafile (default $HOME/.z).
|
||||
Set $_Z_NO_RESOLVE_SYMLINKS to prevent symlink resolution.
|
||||
Set $_Z_NO_PROMPT_COMMAND to handle PROMPT_COMMAND/precmd yourself.
|
||||
Set $_Z_EXCLUDE_DIRS to an array of directories to exclude.
|
||||
(These settings should go in .bashrc/.zshrc before the lines added
|
||||
above.)
|
||||
Install the provided man page z.1 somewhere like /usr/local/man/man1.
|
||||
@@ -134,6 +115,10 @@ ENVIRONMENT
|
||||
The environment variable $_Z_NO_PROMPT_COMMAND can be set if you want
|
||||
to handle PROMPT_COMMAND or precmd yourself.
|
||||
|
||||
The environment variable $_Z_EXCLUDE_DIRS can be set to an array of
|
||||
directories to exclude from tracking. $HOME is always excluded. Direc‐
|
||||
tories must be full paths without trailing slashes.
|
||||
|
||||
|
||||
FILES
|
||||
Data is stored in $HOME/.z. This can be overridden by setting the
|
||||
@@ -149,4 +134,4 @@ SEE ALSO
|
||||
|
||||
|
||||
|
||||
z February 2011 Z(1)
|
||||
z January 2013 Z(1)
|
||||
@@ -1,4 +1,4 @@
|
||||
.TH Z "1" "February 2011" "z" "User Commands"
|
||||
.TH Z "1" "January 2013" "z" "User Commands"
|
||||
|
||||
.SH NAME
|
||||
z \- jump around
|
||||
|
||||
@@ -62,8 +62,8 @@ _z() {
|
||||
count += $2
|
||||
}
|
||||
END {
|
||||
if( count > 1000 ) {
|
||||
for( i in rank ) print i "|" 0.9*rank[i] "|" time[i] # aging
|
||||
if( count > 6000 ) {
|
||||
for( i in rank ) print i "|" 0.99*rank[i] "|" time[i] # aging
|
||||
} else for( i in rank ) print i "|" rank[i] "|" time[i]
|
||||
}
|
||||
' 2>/dev/null >| "$tempfile"
|
||||
|
||||
Reference in new issue
Block a user