1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00
wting_autojump/README.md

154 lines
3.5 KiB
Markdown
Raw Normal View History

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.
2014-01-07 18:32:35 +00:00
*Directories must be visited first before they can be jumped to.*
2014-01-07 18:32:35 +00:00
USAGE
-----
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.
2014-01-07 18:32:35 +00:00
- Jump To A Directory That Contains `foo`:
2014-01-07 18:32:35 +00:00
j foo
2014-06-24 11:13:58 +00:00
- Jump To A Child Directory:
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.
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):
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.
2014-01-07 18:32:35 +00:00
jo music
Opening a file manager to a child directory is also supported:
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
For more options refer to help:
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+
- Supported shells:
- bash v4.0+
- zsh
- fish
- tcsh (experimental)
- clink on Windows (experimental)
2014-01-07 18:32:35 +00:00
### AUTOMATIC
2014-01-07 18:32:35 +00:00
#### Linux
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):
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
2014-01-07 18:32:35 +00:00
Homebrew is the recommended installation method for Mac OS X:
2014-01-07 18:32:35 +00:00
brew install autojump
2014-01-07 18:32:35 +00:00
MacPorts also available:
2014-01-07 18:32:35 +00:00
port install autojump
2014-01-15 21:16:41 +00:00
Windows
-------
Windows support is enabled by [clink](https://code.google.com/p/clink/)
2014-01-15 21:16:41 +00:00
which should be installed prior to installing autojump.
2014-01-07 18:32:35 +00:00
### MANUAL
2014-01-07 18:32:35 +00:00
Grab a copy of autojump:
2014-01-07 18:32:35 +00:00
git clone git://github.com/joelthelion/autojump.git
Run the installation script and follow on screen instructions.
2014-01-07 18:32:35 +00:00
cd autojump
2014-06-24 11:13:58 +00:00
./install.py or ./uninstall.py
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`:
export PROMPT_COMMAND="history -a"
2014-01-07 18:32:35 +00:00
Instead append to the end of the existing $PROMPT\_COMMAND:
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ;} history -a"
REPORTING BUGS
--------------
2014-01-07 18:32:35 +00:00
For any questions or issues please visit:
2014-01-07 18:32:35 +00:00
https://github.com/joelthelion/autojump/issues
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`.
COPYRIGHT
---------
2014-01-07 18:32:35 +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.