2012-04-07 16:57:16 +00:00
|
|
|
NAME
|
|
|
|
----
|
|
|
|
|
|
|
|
autojump - a faster way to navigate your filesystem
|
|
|
|
|
|
|
|
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
|
2014-01-07 18:32:35 +00:00
|
|
|
command line.
|
2012-04-07 16:57:16 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
*Directories must be visited first before they can be jumped to.*
|
2012-04-07 16:57:16 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
USAGE
|
|
|
|
-----
|
2012-05-13 02:38:09 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
`j` is a convenience wrapper function around `autojump`. Any option that
|
|
|
|
can be used with `autojump` can be used with `j` and vice versa.
|
2012-05-13 02:38:09 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
- Jump To A Directory That Contains `foo`:
|
2012-05-13 02:38:09 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
j foo
|
2012-05-13 02:38:09 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
- Jump To A Child Directory
|
2012-04-18 00:26:54 +00:00
|
|
|
|
2014-01-07 18:32:35 +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-04-18 00:26:54 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
jc bar
|
2013-05-15 00:14:03 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
- Open File Manager To Directories (instead of jumping):
|
2012-04-18 00:26:54 +00:00
|
|
|
|
2014-01-07 18:32:35 +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 06:50:40 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
jo music
|
2012-04-18 00:26:54 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
Opening a file manager to a child directory is also supported.
|
2012-04-18 00:26:54 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
jco images
|
2013-02-01 20:45:47 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
- Using Multiple Arguments:
|
2013-02-01 20:45:47 +00:00
|
|
|
|
|
|
|
Let's assume the following database:
|
|
|
|
|
|
|
|
30 /home/user/mail/inbox
|
|
|
|
10 /home/user/work/inbox
|
|
|
|
|
|
|
|
`j in` would jump into /home/user/mail/inbox as the higher weighted
|
|
|
|
entry. However you can pass multiple arguments to autojump to prefer
|
2014-01-07 18:32:35 +00:00
|
|
|
a different entry. In the above example, `j w in` would then change
|
|
|
|
directory to /home/user/work/inbox.
|
2013-02-01 20:45:47 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
For more options refer to help:
|
2012-04-18 00:26:54 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
autojump --help
|
2013-02-01 20:45:47 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
INSTALLATION
|
|
|
|
------------
|
2013-02-01 20:45:47 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
### REQUIREMENTS
|
2013-02-01 20:45:47 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
- Python v2.6+
|
2014-01-13 19:13:36 +00:00
|
|
|
- Bash v4.0+, zsh, fish or clink (Windows)
|
2012-04-18 00:26:54 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
### AUTOMATIC
|
2012-07-03 03:34:21 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
#### Linux
|
2012-07-03 03:34:21 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
autojump is included in the following distro repositories, please use
|
|
|
|
relevant package management utilities to install (e.g. yum, apt-get,
|
|
|
|
etc):
|
2012-07-03 03:34:21 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
- Debian testing/unstable, Ubuntu, Linux Mint
|
2013-02-17 16:49:31 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
All Debian-derived distros require manual activation for policy
|
|
|
|
reasons, please see `/usr/share/doc/autojump/README.Debian`.
|
2013-02-17 16:49:31 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
- RedHat, Fedora, CentOS
|
|
|
|
- ArchLinux
|
|
|
|
- Gentoo
|
|
|
|
- Frugalware
|
|
|
|
- Slackware
|
2013-05-15 00:14:03 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
#### OS X
|
2012-05-07 04:30:22 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
Homebrew is the recommended installation method for Mac OS X:
|
2012-05-07 04:30:22 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
brew install autojump
|
2012-05-07 04:30:22 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
MacPorts also available:
|
2012-04-18 00:26:54 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
port install autojump
|
2012-04-18 00:26:54 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
### MANUAL
|
2012-04-18 00:26:54 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
Grab a copy of autojump:
|
2012-11-23 14:30:15 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
git clone git://github.com/joelthelion/autojump.git
|
2012-11-23 14:30:15 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
Run the installation script and follow on screen instructions.
|
2012-11-23 14:30:15 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
cd autojump
|
|
|
|
./install.py or ./uinstall.py
|
2012-11-23 14:30:15 +00:00
|
|
|
|
2014-01-13 19:13:36 +00:00
|
|
|
## Windows
|
|
|
|
|
|
|
|
Windows support is enabled by [clink](https://code.google.com/p/clink/) which should be installed prior to installing autojump.
|
|
|
|
|
|
|
|
Completion support on windows has not yet been added.
|
|
|
|
|
2012-04-18 00:26:54 +00:00
|
|
|
KNOWN ISSUES
|
|
|
|
------------
|
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
- autojump does not support directories that begin with `-`.
|
|
|
|
|
|
|
|
- For bash users, autojump keeps track of directories by modifying
|
|
|
|
`$PROMPT_COMMAND`. Do not overwrite `$PROMPT_COMMAND`:
|
2012-10-19 11:37:19 +00:00
|
|
|
|
|
|
|
export PROMPT_COMMAND="history -a"
|
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
Instead append to the end of the existing $PROMPT\_COMMAND:
|
2012-10-19 11:37:19 +00:00
|
|
|
|
2012-11-22 22:44:05 +00:00
|
|
|
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ;} history -a"
|
2012-10-19 11:37:19 +00:00
|
|
|
|
2012-04-18 00:26:54 +00:00
|
|
|
REPORTING BUGS
|
|
|
|
--------------
|
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
For any questions or issues please visit:
|
2012-04-18 00:26:54 +00:00
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
https://github.com/joelthelion/autojump/issues
|
2012-04-18 00:26:54 +00:00
|
|
|
|
|
|
|
AUTHORS
|
|
|
|
-------
|
|
|
|
|
|
|
|
autojump was originally written by Joël Schaerer, and currently
|
2014-01-07 18:32:35 +00:00
|
|
|
maintained by William Ting. More contributors can be found in `AUTHORS`.
|
2012-04-18 00:26:54 +00:00
|
|
|
|
|
|
|
COPYRIGHT
|
|
|
|
---------
|
|
|
|
|
2014-01-07 18:32:35 +00:00
|
|
|
Copyright © 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL
|
2012-04-18 00:26:54 +00:00
|
|
|
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.
|