2012-04-07 16:57:16 +00:00
|
|
|
## OPTIONS
|
|
|
|
|
2012-04-08 15:52:47 +00:00
|
|
|
Options must be passed to 'autojump' and not the 'j' wrapper function.
|
2012-04-07 16:57:16 +00:00
|
|
|
|
2013-05-15 00:07:55 +00:00
|
|
|
-i, --increase manually increase current directory weight
|
|
|
|
|
|
|
|
-d, --decrease manually decrease current directory weight
|
2012-04-07 16:57:16 +00:00
|
|
|
|
2012-05-07 19:12:27 +00:00
|
|
|
--purge deletes database entries that no longer exist on system
|
2012-05-07 06:50:40 +00:00
|
|
|
|
2013-05-15 00:07:55 +00:00
|
|
|
-s, --stat show general stats and top 100 database entries
|
2012-04-07 16:57:16 +00:00
|
|
|
|
|
|
|
--version show version information and exit
|
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
ADVANCED USAGE
|
|
|
|
--------------
|
2012-04-07 16:57:16 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
- Using Multiple Arguments
|
2012-04-07 16:57:16 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
Let's assume the following database:
|
2012-04-07 16:57:16 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
30 /home/user/mail/inbox
|
|
|
|
10 /home/user/work/inbox
|
2012-04-07 16:57:16 +00:00
|
|
|
|
2013-02-01 20:45:47 +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-07-03 03:34:21 +00:00
|
|
|
|
2013-05-15 00:07:55 +00:00
|
|
|
- Jump To A Child Directory.
|
2012-07-03 03:34:21 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
Sometimes it's convenient to jump to a child directory (sub-directory of
|
|
|
|
current directory) rather than typing out the full name.
|
2012-07-03 03:34:21 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
jc images
|
2012-05-07 04:30:22 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
- Open File Manager To Directories (instead of jumping)
|
2012-05-07 04:30:22 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
Instead of jumping to a directory, you can open a file explorer window (Mac
|
|
|
|
Finder, Windows Explorer, GNOME Nautilus, etc) to the directory instead.
|
2012-05-07 04:30:22 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
jo music
|
2012-05-07 04:40:19 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
Opening a file manager to a child directory is also supported.
|
2012-05-07 04:40:19 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
jco images
|
2012-05-07 04:40:19 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
ADDITIONAL CONFIGURATION
|
|
|
|
------------------------
|
2012-04-08 15:52:47 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
- Enable ZSH Tab Completion
|
2012-11-23 14:30:15 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
ZSH tab completion requires the `compinit` module to be loaded.
|
2013-02-11 16:34:08 +00:00
|
|
|
Please add the following line to your \~/.zshrc *after* loading autojump:
|
2012-11-23 14:30:15 +00:00
|
|
|
|
2013-02-11 16:34:08 +00:00
|
|
|
autoload -U compinit && compinit
|
2012-11-23 14:30:15 +00:00
|
|
|
|
2013-02-17 16:49:31 +00:00
|
|
|
For security compinit checks completion system if files will be owned by
|
|
|
|
root or the current user. This check can be ignored by using the -u flag:
|
|
|
|
|
|
|
|
autoload -U compinit && compinit -u
|
|
|
|
|
2013-05-15 00:07:55 +00:00
|
|
|
Tab completion requires two tabs before autojump will display the
|
|
|
|
completion menu. However if `setopt nolistambiguous` is enabled,
|
|
|
|
then only one tab is required.
|
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
- Always Ignore Case
|
2012-11-23 14:30:15 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
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:
|
2013-02-01 16:39:58 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
export AUTOJUMP_IGNORE_CASE=1
|
2013-02-01 16:39:58 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
- Prefer Symbolic Links
|
2012-05-07 04:40:19 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
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
|
|
|
|
behavior to prefer symbolic links, add the following environmental
|
|
|
|
variable in your \~/.bashrc:
|
2012-06-24 00:38:26 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
export AUTOJUMP_KEEP_SYMLINKS=1
|
2012-06-24 00:38:26 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
- Autocomplete Additional Commands (Bash only)
|
2012-06-24 00:38:26 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
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:
|
2012-06-24 00:38:26 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
export AUTOJUMP_AUTOCOMPLETE_CMDS='cp vim'
|
2012-06-26 20:17:14 +00:00
|
|
|
|
2013-02-01 20:45:47 +00:00
|
|
|
Changes require reloading autojump to take into effect.
|
2012-06-26 20:17:14 +00:00
|
|
|
|
2012-04-12 06:37:02 +00:00
|
|
|
## KNOWN ISSUES
|
|
|
|
|
2012-10-31 02:19:04 +00:00
|
|
|
- For bash users, autojump keeps track of directories as a pre-command hook by
|
2013-11-24 22:45:01 +00:00
|
|
|
modifying \$PROMPT\_COMMAND. If you overwrite \$PROMPT\_COMMAND in ~/.bashrc you
|
2012-10-31 02:19:04 +00:00
|
|
|
can cause problems. Don't do this:
|
|
|
|
|
|
|
|
export PROMPT_COMMAND="history -a"
|
|
|
|
|
|
|
|
Do this:
|
|
|
|
|
2012-11-22 22:44:05 +00:00
|
|
|
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ;} history -a"
|
2012-10-31 02:19:04 +00:00
|
|
|
|
|
|
|
- The jump function `j` does not support directories that begin with `-`. If you
|
|
|
|
want to jump a directory called `--music`, try using `j music` instead of `j
|
|
|
|
--music`.
|
2012-05-27 21:24:49 +00:00
|
|
|
|
2012-04-07 16:57:16 +00:00
|
|
|
## FILES
|
|
|
|
|
2012-04-08 15:52:47 +00:00
|
|
|
If installed locally, autojump is self-contained in _~/.autojump/_.
|
2012-04-07 16:57:16 +00:00
|
|
|
|
2013-11-24 22:45:01 +00:00
|
|
|
The database is stored in _$XDG\_DATA\_HOME/autojump/autojump.txt_.
|
2012-04-07 16:57:16 +00:00
|
|
|
|
|
|
|
## REPORTING BUGS
|
|
|
|
|
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
|
|
|
|
2012-04-08 15:52:47 +00:00
|
|
|
_https://github.com/joelthelion/autojump/issues_
|
2012-04-07 16:57:16 +00:00
|
|
|
|
|
|
|
## THANKS
|
|
|
|
|
2012-10-31 02:19:04 +00:00
|
|
|
Special thanks goes out to: Pierre Gueth, Simon Marache-Francisco, Daniel
|
|
|
|
Jackoway, and many others.
|
2012-04-07 16:57:16 +00:00
|
|
|
|
|
|
|
## AUTHORS
|
|
|
|
|
2012-10-31 02:19:04 +00:00
|
|
|
autojump was originally written by Joël Schaerer, and currently maintained by
|
|
|
|
William Ting.
|
2012-04-07 16:57:16 +00:00
|
|
|
|
|
|
|
## COPYRIGHT
|
|
|
|
|
2012-10-31 02:19:04 +00:00
|
|
|
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.
|