25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

273 satır
6.9 KiB

  1. NAME
  2. ----
  3. autojump - a faster way to navigate your filesystem
  4. SYNOPSIS
  5. --------
  6. Jump to a previously visited directory 'foobar':
  7. j foo
  8. Show all database entries and their respective key weights:
  9. j --stat
  10. DESCRIPTION
  11. -----------
  12. autojump is a faster way to navigate your filesystem. It works by
  13. maintaining a database of the directories you use the most from the
  14. command line. The `j --stat` command shows you the current contents of
  15. the database. Directories must be visited first before they can be
  16. jumped to.
  17. INSTALLATION
  18. ------------
  19. ### REQUIREMENTS
  20. - Python v2.6+
  21. - Bash v4.0 for tab completion (or zsh)
  22. If you are unable to update Python to a supported version, older
  23. versions of autojump can be
  24. [downloaded](https://github.com/joelthelion/autojump/downloads) and
  25. installed manually.
  26. - Python v2.4 is supported by [release
  27. v12](https://github.com/downloads/joelthelion/autojump/autojump_v12.tar.gz).
  28. ### AUTOMATIC INSTALLATION
  29. **Linux**
  30. autojump is included in the following distro repositories, please use
  31. relevant package management utilities to install (e.g. yum, apt-get,
  32. etc):
  33. - Debian\* testing/unstable, Ubuntu, Linux Mint
  34. - RedHat, Fedora, CentOS
  35. - ArchLinux
  36. - Gentoo
  37. - Frugalware
  38. - Slackware
  39. \* Requires manual activation for policy reasons, please see
  40. `/usr/share/doc/autojump/README.Debian`.
  41. **Mac**
  42. Homebrew is the recommended installation method for Mac OS X:
  43. brew install autojump
  44. MacPorts also available:
  45. port install autojump
  46. **Other**
  47. Please check the [Wiki](https://github.com/joelthelion/autojump/wiki)
  48. for an up to date listing of installation methods.
  49. ### MANUAL INSTALLATION
  50. Grab a copy of autojump:
  51. git clone git://github.com/joelthelion/autojump.git
  52. Run the installation script:
  53. cd autojump
  54. ./install.sh [ --local ] [ --zsh ]
  55. and follow on screen instructions.
  56. ### MANUAL UNINSTALLATION
  57. It is recommended to use your distribution's relevant package management
  58. utilities, unless you installed manually or ran into uninstallation
  59. issues.
  60. Grab a copy of autojump:
  61. git clone git://github.com/joelthelion/autojump.git
  62. Run the uninstallation script:
  63. cd autojump
  64. ./uninstall.sh
  65. and follow on screen instructions.
  66. If you keep getting `autojump: command not found` at the prompt,
  67. do:`unset PROMPT_COMMAND`. You can also restart your shell.
  68. DEVELOPMENT
  69. -----------
  70. The source code is primarily in `./bin/autojump`. Various shell wrapper
  71. scripts are also available in `./bin/`.
  72. Documentation is in various files under `./docs/`. Build documentation
  73. with the command:
  74. make docs
  75. Unit tests are available in `./tests/`. Run unit tests with the command:
  76. make test
  77. OPTIONS
  78. -------
  79. Options must be passed to 'autojump' and not the 'j' wrapper function.
  80. -a, --add DIR manually add path to database
  81. --purge deletes database entries that no longer exist on system
  82. -s, --stat show database entries and their key weights
  83. --version show version information and exit
  84. INTERNAL OPTIONS
  85. ----------------
  86. -b, --bash enclose directory with quotes to prevent errors
  87. --complete used for tab completion
  88. ADDITIONAL CONFIGURATION
  89. ------------------------
  90. - Enable ZSH Tab Completion
  91. ZSH tab completion requires the `compinit` module to be loaded.
  92. Please add the following line to your \~/.zshrc:
  93. autoload -U compinit; compinit
  94. - Always Ignore Case
  95. Default behavior is to prioritize exact matches over all else. For
  96. example, `j foo` will prefer /foobar over /FooBar even if the latter
  97. has a higher weight. To change this behavior and ignore case, add
  98. the following environmental variable in your \~/.bashrc:
  99. export AUTOJUMP_IGNORE_CASE=1
  100. - Prevent Database Entries' Decay
  101. Default behavior is to decay unused database entries slowly over
  102. time. Eventually when database limits are hit and maintenance is
  103. run, autojump will purge older less used entries. To prevent decay,
  104. add the following variable in your \~/.bashrc:
  105. export AUTOJUMP_KEEP_ALL_ENTRIES=1
  106. - Prefer Symbolic Links
  107. Default behavior is to evaluate symbolic links into full paths as to
  108. reduce duplicate entries in the database. However, some users prefer
  109. a shorter working directory path in their shell prompt. To switch
  110. behavior to prefer symbolic links, add the following environmental
  111. variable in your \~/.bashrc:
  112. export AUTOJUMP_KEEP_SYMLINKS=1
  113. ADVANCED USAGE
  114. --------------
  115. - Using Multiple Arguments
  116. Let's assume the following database:
  117. 30 /home/user/mail/inbox 10 /home/user/work/inbox
  118. `j in` would jump into /home/user/mail/inbox as the higher weighted
  119. entry. However you can pass multiple arguments to autojump to prefer
  120. a different entry. In the above example, `j w in` would then jump
  121. you into /home/user/work/inbox.
  122. - ZSH Tab Completion
  123. Tab completion requires two tabs before autojump will display the
  124. completion menu. However if `setopt nolistambiguous` is enabled,
  125. then only one tab is required.
  126. - Change Directory Weight
  127. To manually change a directory's key weight, you can edit the file
  128. *$XDG\_DATA\_HOME/autojump/autojump.txt*. Each entry has two
  129. columns. The first is the key weight and the second is the path:
  130. 29.3383211216 /home/user/downloads
  131. All negative key weights are purged automatically.
  132. KNOWN ISSUES
  133. ------------
  134. - For bash users, autojump keeps track of directories as a pre-command
  135. hook by modifying $PROMPT\_COMMAND. If you overwrite
  136. $PROMPT\_COMMAND in \~/.bashrc you can cause problems. Don't do
  137. this:
  138. export PROMPT_COMMAND="history -a"
  139. Do this:
  140. export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }history -a"
  141. - The jump function `j` does not support directories that begin with
  142. `-`. If you want to jump a directory called `--music`, try using
  143. `j music` instead of `j --music`.
  144. - jumpapplet (bug \#59)
  145. Does not work in Gnome 3 shell or LDXE.
  146. FILES
  147. -----
  148. If installed locally, autojump is self-contained in *\~/.autojump/*.
  149. The database is stored in *$XDG\_DATA\_HOME/autojump/autojump.txt*.
  150. REPORTING BUGS
  151. --------------
  152. For any usage related issues or feature requests please visit:
  153. *https://github.com/joelthelion/autojump/issues*
  154. MAILING LIST
  155. ------------
  156. For release announcements and development related discussion please
  157. visit:
  158. *https://groups.google.com/forum/?fromgroups\#!forum/autojump*
  159. THANKS
  160. ------
  161. Special thanks goes out to: Pierre Gueth, Simon Marache-Francisco,
  162. Daniel Jackoway, and many others.
  163. AUTHORS
  164. -------
  165. autojump was originally written by Joël Schaerer, and currently
  166. maintained by William Ting.
  167. COPYRIGHT
  168. ---------
  169. Copyright © 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL
  170. version 3 or later <http://gnu.org/licenses/gpl.html>. This is free
  171. software: you are free to change and redistribute it. There is NO
  172. WARRANTY, to the extent permitted by law.