2012-04-11 00:43:02 +00:00
|
|
|
.TH autojump 1 "10 April 2012" "release-v20"
|
2012-04-07 16:57:16 +00:00
|
|
|
.SS NAME
|
|
|
|
.PP
|
|
|
|
autojump - a faster way to navigate your filesystem
|
|
|
|
.SS SYNOPSIS
|
|
|
|
.PP
|
|
|
|
Jump to a previously visited directory \[aq]foobar\[aq]:
|
|
|
|
.IP
|
2009-02-10 17:29:57 +00:00
|
|
|
.nf
|
2012-04-07 16:57:16 +00:00
|
|
|
\f[C]
|
|
|
|
j\ foo
|
|
|
|
\f[]
|
2009-02-10 17:29:57 +00:00
|
|
|
.fi
|
2012-04-07 16:57:16 +00:00
|
|
|
.PP
|
|
|
|
Show all database entries and their respective key weights:
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
2012-05-27 21:56:38 +00:00
|
|
|
j\ --stat
|
2012-04-07 16:57:16 +00:00
|
|
|
\f[]
|
|
|
|
.fi
|
|
|
|
.SS DESCRIPTION
|
|
|
|
.PP
|
|
|
|
autojump is a faster way to navigate your filesystem.
|
|
|
|
It works by maintaining a database of the directories you use the most
|
|
|
|
from the command line.
|
2012-05-27 21:56:38 +00:00
|
|
|
The \f[C]j\ --stat\f[] command shows you the current contents of the
|
|
|
|
database.
|
2012-04-07 16:57:16 +00:00
|
|
|
Directories must be visited first before they can be jumped to.
|
|
|
|
.SS OPTIONS
|
|
|
|
.PP
|
2012-04-08 15:52:47 +00:00
|
|
|
Options must be passed to \[aq]autojump\[aq] and not the \[aq]j\[aq]
|
|
|
|
wrapper function.
|
2012-04-07 16:57:16 +00:00
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
-a,\ --add\ DIR\ \ \ \ \ \ \ manually\ add\ path\ to\ database
|
2009-05-13 09:32:19 +00:00
|
|
|
|
2012-05-08 19:09:16 +00:00
|
|
|
--purge\ \ \ \ \ \ \ \ \ \ \ \ \ deletes\ database\ entries\ that\ no\ longer\ exist\ on\ system
|
2012-05-07 06:50:40 +00:00
|
|
|
|
2012-05-27 21:24:49 +00:00
|
|
|
-s,\ --stat\ \ \ \ \ \ \ \ \ \ \ \ \ \ show\ database\ entries\ and\ their\ key\ weights
|
2009-05-13 09:32:19 +00:00
|
|
|
|
2012-04-07 16:57:16 +00:00
|
|
|
--version\ \ \ \ \ \ \ \ \ \ \ show\ version\ information\ and\ exit
|
|
|
|
\f[]
|
|
|
|
.fi
|
|
|
|
.SS INTERNAL OPTIONS
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
2012-04-08 15:52:47 +00:00
|
|
|
-b,\ --bash\ \ \ \ \ \ \ \ \ \ enclose\ directory\ with\ quotes\ to\ prevent\ errors
|
2009-05-13 09:32:19 +00:00
|
|
|
|
2012-05-07 01:17:33 +00:00
|
|
|
--complete\ \ \ \ \ \ \ \ \ \ used\ for\ tab\ completion
|
2012-04-07 16:57:16 +00:00
|
|
|
\f[]
|
|
|
|
.fi
|
2012-05-07 04:40:19 +00:00
|
|
|
.SS ADDITIONAL CONFIGURATION
|
2012-04-08 15:52:47 +00:00
|
|
|
.IP \[bu] 2
|
2012-07-03 03:34:21 +00:00
|
|
|
Enable ZSH Tab Completion
|
|
|
|
.RS 2
|
|
|
|
.PP
|
|
|
|
ZSH tab completion requires the \f[C]compinit\f[] module to be loaded.
|
|
|
|
Please add the following line to your ~/.zshrc:
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
autoload\ -U\ compinit;\ compinit
|
|
|
|
\f[]
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.IP \[bu] 2
|
2012-05-07 04:30:22 +00:00
|
|
|
Always Ignore Case
|
|
|
|
.RS 2
|
|
|
|
.PP
|
|
|
|
Default behavior is to prioritize exact matches over all else.
|
|
|
|
For example, \f[C]j\ foo\f[] will prefer /foobar over /FooBar even if
|
|
|
|
the latter has a higher weight.
|
|
|
|
To change this behavior and ignore case, add the following environmental
|
|
|
|
variable in your ~/.bashrc:
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
export\ AUTOJUMP_IGNORE_CASE=1
|
|
|
|
\f[]
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.IP \[bu] 2
|
2012-05-07 04:40:19 +00:00
|
|
|
Prevent Database Entries\[aq] Decay
|
|
|
|
.RS 2
|
|
|
|
.PP
|
|
|
|
Default behavior is to decay unused database entries slowly over time.
|
|
|
|
Eventually when database limits are hit and maintenance is run, autojump
|
|
|
|
will purge older less used entries.
|
|
|
|
To prevent decay, add the following variable in your ~/.bashrc:
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
export\ AUTOJUMP_KEEP_ALL_ENTRIES=1
|
|
|
|
\f[]
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.IP \[bu] 2
|
2012-04-08 15:52:47 +00:00
|
|
|
Prefer Symbolic Links
|
|
|
|
.RS 2
|
|
|
|
.PP
|
|
|
|
Default behavior is to evaluate symbolic links into full paths as to
|
|
|
|
reduce duplicate entries in the database.
|
|
|
|
However, some users prefer a shorter working directory path in their
|
|
|
|
shell prompt.
|
2012-05-07 04:30:22 +00:00
|
|
|
To switch behavior to prefer symbolic links, add the following
|
|
|
|
environmental variable in your ~/.bashrc:
|
2012-04-08 15:52:47 +00:00
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
export\ AUTOJUMP_KEEP_SYMLINKS=1
|
|
|
|
\f[]
|
|
|
|
.fi
|
|
|
|
.RE
|
2012-11-23 14:30:15 +00:00
|
|
|
.IP \[bu] 2
|
|
|
|
Autocomplete Additional Commands (Bash only)
|
|
|
|
.RS 2
|
|
|
|
.PP
|
|
|
|
Autojump can be used to autocomplete other commands (e.g.
|
|
|
|
cp or vim).
|
|
|
|
To use this feature, add the following environmental variable in your
|
|
|
|
~/.bashrc:
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
export\ AUTOJUMP_AUTOCOMPLETE_CMDS=\[aq]cp\ vim\[aq]
|
|
|
|
\f[]
|
|
|
|
.fi
|
|
|
|
.PP
|
|
|
|
Changes require reloading autojump to take into effect.
|
|
|
|
.RE
|
2012-05-07 04:40:19 +00:00
|
|
|
.SS ADVANCED USAGE
|
2012-04-08 15:52:47 +00:00
|
|
|
.IP \[bu] 2
|
2012-06-24 00:38:26 +00:00
|
|
|
Using Multiple Arguments
|
|
|
|
.RS 2
|
|
|
|
.PP
|
|
|
|
Let\[aq]s assume the following database:
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
2012-10-19 11:37:19 +00:00
|
|
|
30\ \ \ /home/user/mail/inbox\ 10\ \ \ /home/user/work/inbox
|
2012-06-24 00:38:26 +00:00
|
|
|
\f[]
|
|
|
|
.fi
|
|
|
|
.PP
|
|
|
|
\f[C]j\ in\f[] would jump into /home/user/mail/inbox as the higher
|
|
|
|
weighted entry.
|
|
|
|
However you can pass multiple arguments to autojump to prefer a
|
|
|
|
different entry.
|
|
|
|
In the above example, \f[C]j\ w\ in\f[] would then jump you into
|
|
|
|
/home/user/work/inbox.
|
|
|
|
.RE
|
|
|
|
.IP \[bu] 2
|
2012-06-26 20:17:14 +00:00
|
|
|
ZSH Tab Completion
|
|
|
|
.RS 2
|
|
|
|
.PP
|
|
|
|
Tab completion requires two tabs before autojump will display the
|
|
|
|
completion menu.
|
|
|
|
However if \f[C]setopt\ nolistambiguous\f[] is enabled, then only one
|
|
|
|
tab is required.
|
|
|
|
.RE
|
|
|
|
.IP \[bu] 2
|
2012-04-08 15:52:47 +00:00
|
|
|
Change Directory Weight
|
|
|
|
.RS 2
|
|
|
|
.PP
|
|
|
|
To manually change a directory\[aq]s key weight, you can edit the file
|
|
|
|
\f[I]$XDG_DATA_HOME/autojump/autojump.txt\f[].
|
|
|
|
Each entry has two columns.
|
|
|
|
The first is the key weight and the second is the path:
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
29.3383211216\ \ \ /home/user/downloads
|
|
|
|
\f[]
|
|
|
|
.fi
|
2012-04-07 16:57:16 +00:00
|
|
|
.PP
|
2012-04-08 15:52:47 +00:00
|
|
|
All negative key weights are purged automatically.
|
|
|
|
.RE
|
2012-04-12 06:37:02 +00:00
|
|
|
.SS KNOWN ISSUES
|
|
|
|
.IP \[bu] 2
|
2012-10-19 11:37:19 +00:00
|
|
|
For bash users, autojump keeps track of directories as a pre-command
|
|
|
|
hook by modifying $PROMPT_COMMAND.
|
|
|
|
If you overwrite $PROMPT_COMMAND in ~/.bashrc you can cause problems.
|
|
|
|
Don\[aq]t do this:
|
|
|
|
.RS 2
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
export\ PROMPT_COMMAND="history\ -a"
|
|
|
|
\f[]
|
|
|
|
.fi
|
|
|
|
.PP
|
|
|
|
Do this:
|
2012-11-22 22:44:05 +00:00
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
export\ PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND\ ;}\ history\ -a"
|
|
|
|
\f[]
|
|
|
|
.fi
|
2012-10-19 11:37:19 +00:00
|
|
|
.RE
|
|
|
|
.IP \[bu] 2
|
2012-05-27 23:14:01 +00:00
|
|
|
The jump function \f[C]j\f[] does not support directories that begin
|
|
|
|
with \f[C]-\f[].
|
|
|
|
If you want to jump a directory called \f[C]--music\f[], try using
|
2012-10-19 11:37:19 +00:00
|
|
|
\f[C]j\ music\f[] instead of \f[C]j\ \ \ --music\f[].
|
2012-05-27 21:24:49 +00:00
|
|
|
.IP \[bu] 2
|
2012-04-12 06:37:02 +00:00
|
|
|
jumpapplet (bug #59)
|
|
|
|
.RS 2
|
|
|
|
.PP
|
|
|
|
Does not work in Gnome 3 shell or LDXE.
|
|
|
|
.RE
|
2012-04-07 16:57:16 +00:00
|
|
|
.SS FILES
|
|
|
|
.PP
|
2012-04-08 15:52:47 +00:00
|
|
|
If installed locally, autojump is self-contained in
|
|
|
|
\f[I]~/.autojump/\f[].
|
2012-04-07 16:57:16 +00:00
|
|
|
.PP
|
2012-04-08 15:52:47 +00:00
|
|
|
The database is stored in \f[I]$XDG_DATA_HOME/autojump/autojump.txt\f[].
|
2012-04-07 16:57:16 +00:00
|
|
|
.SS REPORTING BUGS
|
|
|
|
.PP
|
2012-05-07 19:12:27 +00:00
|
|
|
For any usage related issues or feature requests please visit:
|
2012-04-07 16:57:16 +00:00
|
|
|
.PP
|
2012-04-08 15:52:47 +00:00
|
|
|
\f[I]https://github.com/joelthelion/autojump/issues\f[]
|
2012-05-07 19:12:27 +00:00
|
|
|
.SS MAILING LIST
|
2012-05-07 09:32:04 +00:00
|
|
|
.PP
|
2012-05-07 19:12:27 +00:00
|
|
|
For release announcements and development related discussion please
|
|
|
|
visit:
|
2012-05-07 09:32:04 +00:00
|
|
|
.PP
|
|
|
|
\f[I]https://groups.google.com/forum/?fromgroups#!forum/autojump\f[]
|
2012-04-07 16:57:16 +00:00
|
|
|
.SS THANKS
|
|
|
|
.PP
|
|
|
|
Special thanks goes out to: Pierre Gueth, Simon Marache-Francisco,
|
|
|
|
Daniel Jackoway, and many others.
|
|
|
|
.SS AUTHORS
|
|
|
|
.PP
|
|
|
|
autojump was originally written by Joël Schaerer, and currently
|
|
|
|
maintained by William Ting.
|
|
|
|
.SS COPYRIGHT
|
|
|
|
.PP
|
|
|
|
Copyright © 2012 Free Software Foundation, Inc.
|
|
|
|
License GPLv3+: GNU GPL version 3 or later
|
|
|
|
<http://gnu.org/licenses/gpl.html>.
|
|
|
|
This is free software: you are free to change and redistribute it.
|
|
|
|
There is NO WARRANTY, to the extent permitted by law.
|