No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

276 líneas
7.0 KiB

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