Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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