From 61c4b1f8c01dd899b720899bcbd382b993c8dd94 Mon Sep 17 00:00:00 2001 From: rupa Date: Sat, 12 Jan 2013 00:45:38 -0500 Subject: [PATCH] docs README also removes zsh backward incompatibility warning --- README | 27 ++++++--------------------- z.1 | 2 +- z.sh | 4 ++-- 3 files changed, 9 insertions(+), 24 deletions(-) diff --git a/README b/README index 168a638..a59cf05 100644 --- a/README +++ b/README @@ -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) diff --git a/z.1 b/z.1 index 2e5c225..3c8709b 100644 --- a/z.1 +++ b/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 diff --git a/z.sh b/z.sh index 25e2d2f..e5056fa 100755 --- a/z.sh +++ b/z.sh @@ -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"