2012-04-07 16:57:16 +00:00
|
|
|
NAME
|
|
|
|
----
|
|
|
|
|
|
|
|
autojump - a faster way to navigate your filesystem
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
|
|
|
Jump to a previously visited directory 'foobar':
|
|
|
|
|
|
|
|
j foo
|
|
|
|
|
|
|
|
Show all database entries and their respective key weights:
|
|
|
|
|
2012-05-27 21:56:38 +00:00
|
|
|
j --stat
|
2012-04-07 16:57:16 +00:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
|
|
|
autojump is a faster way to navigate your filesystem. It works by
|
|
|
|
maintaining a database of the directories you use the most from the
|
2012-05-27 21:56:38 +00:00
|
|
|
command line. The `j --stat` command shows you the current contents of
|
|
|
|
the database. Directories must be visited first before they can be
|
|
|
|
jumped to.
|
2012-04-07 16:57:16 +00:00
|
|
|
|
|
|
|
INSTALLATION
|
|
|
|
------------
|
|
|
|
|
|
|
|
### REQUIREMENTS
|
|
|
|
|
2012-10-31 03:07:04 +00:00
|
|
|
- Python v2.6+
|
2012-10-19 11:37:19 +00:00
|
|
|
- Bash v4.0 for tab completion (or zsh)
|
2012-04-08 15:52:47 +00:00
|
|
|
|
2012-04-12 09:03:03 +00:00
|
|
|
If you are unable to update Python to a supported version, older
|
|
|
|
versions of autojump can be
|
|
|
|
[downloaded](https://github.com/joelthelion/autojump/downloads) and
|
|
|
|
installed manually.
|
|
|
|
|
2012-05-08 19:18:43 +00:00
|
|
|
- Python v2.4 is supported by [release
|
2012-04-18 06:38:49 +00:00
|
|
|
v12](https://github.com/downloads/joelthelion/autojump/autojump_v12.tar.gz).
|
2012-04-12 09:03:03 +00:00
|
|
|
|
2012-04-07 16:57:16 +00:00
|
|
|
### AUTOMATIC INSTALLATION
|
|
|
|
|
|
|
|
**Linux**
|
|
|
|
|
|
|
|
autojump is included in the following distro repositories, please use
|
|
|
|
relevant package management utilities to install (e.g. yum, apt-get,
|
|
|
|
etc):
|
|
|
|
|
2012-04-18 06:38:49 +00:00
|
|
|
- Debian\* testing/unstable, Ubuntu, Linux Mint
|
|
|
|
- RedHat, Fedora, CentOS
|
|
|
|
- ArchLinux
|
|
|
|
- Gentoo
|
|
|
|
- Frugalware
|
|
|
|
- Slackware
|
2012-04-07 16:57:16 +00:00
|
|
|
|
2012-04-18 06:38:49 +00:00
|
|
|
\* Requires manual activation for policy reasons, please see
|
|
|
|
`/usr/share/doc/autojump/README.Debian`.
|
2012-04-07 16:57:16 +00:00
|
|
|
|
|
|
|
**Mac**
|
|
|
|
|
2012-04-12 08:31:36 +00:00
|
|
|
Homebrew is the recommended installation method for Mac OS X:
|
2012-04-07 16:57:16 +00:00
|
|
|
|
|
|
|
brew install autojump
|
|
|
|
|
2012-04-12 08:31:36 +00:00
|
|
|
MacPorts also available:
|
2012-04-12 06:40:18 +00:00
|
|
|
|
|
|
|
port install autojump
|
2012-04-07 16:57:16 +00:00
|
|
|
|
|
|
|
**Other**
|
|
|
|
|
|
|
|
Please check the [Wiki](https://github.com/joelthelion/autojump/wiki)
|
|
|
|
for an up to date listing of installation methods.
|
|
|
|
|
|
|
|
### MANUAL INSTALLATION
|
|
|
|
|
2012-04-12 08:31:36 +00:00
|
|
|
Grab a copy of autojump:
|
2012-04-07 16:57:16 +00:00
|
|
|
|
|
|
|
git clone git://github.com/joelthelion/autojump.git
|
|
|
|
|
2012-04-12 08:31:36 +00:00
|
|
|
Run the installation script:
|
2012-04-07 16:57:16 +00:00
|
|
|
|
|
|
|
cd autojump
|
|
|
|
./install.sh [ --local ] [ --zsh ]
|
|
|
|
|
|
|
|
and follow on screen instructions.
|
|
|
|
|
|
|
|
### MANUAL UNINSTALLATION
|
|
|
|
|
|
|
|
It is recommended to use your distribution's relevant package management
|
|
|
|
utilities, unless you installed manually or ran into uninstallation
|
|
|
|
issues.
|
|
|
|
|
|
|
|
Grab a copy of autojump:
|
|
|
|
|
|
|
|
git clone git://github.com/joelthelion/autojump.git
|
|
|
|
|
|
|
|
Run the uninstallation script:
|
|
|
|
|
|
|
|
cd autojump
|
|
|
|
./uninstall.sh
|
|
|
|
|
|
|
|
and follow on screen instructions.
|
|
|
|
|
|
|
|
If you keep getting `autojump: command not found` at the prompt,
|
|
|
|
do:`unset PROMPT_COMMAND`. You can also restart your shell.
|
2012-04-18 00:26:54 +00:00
|
|
|
|
2012-05-13 02:38:09 +00:00
|
|
|
DEVELOPMENT
|
|
|
|
-----------
|
|
|
|
|
|
|
|
The source code is primarily in `./bin/autojump`. Various shell wrapper
|
|
|
|
scripts are also available in `./bin/`.
|
|
|
|
|
|
|
|
Documentation is in various files under `./docs/`. Build documentation
|
|
|
|
with the command:
|
|
|
|
|
|
|
|
make docs
|
|
|
|
|
|
|
|
Unit tests are available in `./tests/`. Run unit tests with the command:
|
|
|
|
|
|
|
|
make test
|
|
|
|
|
2012-04-18 00:26:54 +00:00
|
|
|
OPTIONS
|
|
|
|
-------
|
|
|
|
|
|
|
|
Options must be passed to 'autojump' and not the 'j' wrapper function.
|
|
|
|
|
|
|
|
-a, --add DIR manually add path to database
|
|
|
|
|
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
|
2012-04-18 00:26:54 +00:00
|
|
|
|
|
|
|
--version show version information and exit
|
|
|
|
|
|
|
|
INTERNAL OPTIONS
|
|
|
|
----------------
|
|
|
|
|
|
|
|
-b, --bash enclose directory with quotes to prevent errors
|
|
|
|
|
2012-05-07 01:17:33 +00:00
|
|
|
--complete used for tab completion
|
2012-04-18 00:26:54 +00:00
|
|
|
|
2012-05-07 04:40:19 +00:00
|
|
|
ADDITIONAL CONFIGURATION
|
|
|
|
------------------------
|
2012-04-18 00:26:54 +00:00
|
|
|
|
2012-07-03 03:34:21 +00:00
|
|
|
- Enable ZSH Tab Completion
|
|
|
|
|
|
|
|
ZSH tab completion requires the `compinit` module to be loaded.
|
|
|
|
Please add the following line to your \~/.zshrc:
|
|
|
|
|
|
|
|
autoload -U compinit; compinit
|
|
|
|
|
2012-05-07 04:30:22 +00:00
|
|
|
- Always Ignore Case
|
|
|
|
|
|
|
|
Default behavior is to prioritize exact matches over all else. For
|
|
|
|
example, `j foo` 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:
|
|
|
|
|
|
|
|
export AUTOJUMP_IGNORE_CASE=1
|
|
|
|
|
2012-05-07 04:40:19 +00:00
|
|
|
- Prevent Database Entries' Decay
|
|
|
|
|
|
|
|
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:
|
|
|
|
|
|
|
|
export AUTOJUMP_KEEP_ALL_ENTRIES=1
|
|
|
|
|
2012-04-18 00:26:54 +00:00
|
|
|
- Prefer Symbolic Links
|
|
|
|
|
|
|
|
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. To switch
|
2012-05-07 04:30:22 +00:00
|
|
|
behavior to prefer symbolic links, add the following environmental
|
|
|
|
variable in your \~/.bashrc:
|
2012-04-18 00:26:54 +00:00
|
|
|
|
|
|
|
export AUTOJUMP_KEEP_SYMLINKS=1
|
|
|
|
|
2012-05-07 04:40:19 +00:00
|
|
|
ADVANCED USAGE
|
|
|
|
--------------
|
|
|
|
|
2012-06-24 00:38:26 +00:00
|
|
|
- Using Multiple Arguments
|
|
|
|
|
|
|
|
Let's assume the following database:
|
|
|
|
|
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
|
|
|
|
|
|
|
`j in` 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, `j w in` would then jump
|
|
|
|
you into /home/user/work/inbox.
|
|
|
|
|
2012-06-26 20:17:14 +00:00
|
|
|
- ZSH Tab Completion
|
|
|
|
|
|
|
|
Tab completion requires two tabs before autojump will display the
|
|
|
|
completion menu. However if `setopt nolistambiguous` is enabled,
|
|
|
|
then only one tab is required.
|
|
|
|
|
2012-04-18 00:26:54 +00:00
|
|
|
- Change Directory Weight
|
|
|
|
|
|
|
|
To manually change a directory's key weight, you can edit the file
|
|
|
|
*$XDG\_DATA\_HOME/autojump/autojump.txt*. Each entry has two
|
|
|
|
columns. The first is the key weight and the second is the path:
|
|
|
|
|
|
|
|
29.3383211216 /home/user/downloads
|
|
|
|
|
|
|
|
All negative key weights are purged automatically.
|
|
|
|
|
|
|
|
KNOWN ISSUES
|
|
|
|
------------
|
|
|
|
|
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't do
|
|
|
|
this:
|
|
|
|
|
|
|
|
export PROMPT_COMMAND="history -a"
|
|
|
|
|
|
|
|
Do this:
|
|
|
|
|
2012-11-12 23:35:08 +00:00
|
|
|
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }history -a"
|
2012-10-19 11:37:19 +00:00
|
|
|
|
2012-05-27 23:14:01 +00:00
|
|
|
- The jump function `j` does not support directories that begin with
|
|
|
|
`-`. If you want to jump a directory called `--music`, try using
|
2012-10-19 11:37:19 +00:00
|
|
|
`j music` instead of `j --music`.
|
2012-05-27 21:24:49 +00:00
|
|
|
|
2012-04-18 00:26:54 +00:00
|
|
|
- jumpapplet (bug \#59)
|
|
|
|
|
|
|
|
Does not work in Gnome 3 shell or LDXE.
|
|
|
|
|
|
|
|
FILES
|
|
|
|
-----
|
|
|
|
|
|
|
|
If installed locally, autojump is self-contained in *\~/.autojump/*.
|
|
|
|
|
|
|
|
The database is stored in *$XDG\_DATA\_HOME/autojump/autojump.txt*.
|
|
|
|
|
|
|
|
REPORTING BUGS
|
|
|
|
--------------
|
|
|
|
|
2012-05-07 19:12:27 +00:00
|
|
|
For any usage related issues or feature requests please visit:
|
2012-04-18 00:26:54 +00:00
|
|
|
|
|
|
|
*https://github.com/joelthelion/autojump/issues*
|
|
|
|
|
2012-05-07 19:12:27 +00:00
|
|
|
MAILING LIST
|
|
|
|
------------
|
2012-05-07 09:21:37 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
*https://groups.google.com/forum/?fromgroups\#!forum/autojump*
|
2012-05-07 09:21:37 +00:00
|
|
|
|
2012-04-18 00:26:54 +00:00
|
|
|
THANKS
|
|
|
|
------
|
|
|
|
|
|
|
|
Special thanks goes out to: Pierre Gueth, Simon Marache-Francisco,
|
|
|
|
Daniel Jackoway, and many others.
|
|
|
|
|
|
|
|
AUTHORS
|
|
|
|
-------
|
|
|
|
|
|
|
|
autojump was originally written by Joël Schaerer, and currently
|
|
|
|
maintained by William Ting.
|
|
|
|
|
|
|
|
COPYRIGHT
|
|
|
|
---------
|
|
|
|
|
|
|
|
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.
|