mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
Add disclaimer regarding documentation updates. Modify formatting for consistency.
parent
37da67ef23
commit
1a0285ea11
@ -1,12 +1,16 @@
|
||||
<b>Autojump: a cd command that learns</b><a href="http://flattr.com/thing/52284/Autojump-a-cd-command-that-learns" target="_blank">
|
||||
## This wiki is rarely updated. Please refer to the [readme.md](https://github.com/joelthelion/autojump#name) or man pages for up to date documentation.
|
||||
|
||||
For a quick introduction to Autojump, see [[this video.|http://www.youtube.com/watch?v=tnNyoMGnbKg]]
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
# Autojump: a cd command that learns
|
||||
|
||||
For a quick introduction to Autojump, see [this video](http://www.youtube.com/watch?v=tnNyoMGnbKg).
|
||||
|
||||
One of the most used shell commands is "cd". A quick survey among my friends revealed that between 10 and 20% of all commands they type are actually cd commands! Unfortunately, jumping from one part of your system to another with cd requires you to enter almost the full path, which isn't very practical and requires a lot of keystrokes.
|
||||
|
||||
*autojump* is a faster way to navigate your filesystem. It works by maintaining a database of the directories you use the most from the command line. The `autojump -s` command shows you the current contents of the database. You need to work a little bit before the database becomes usable. Once your database is reasonably complete, you can "jump" to a commonly "cd"ed directory by typing:
|
||||
|
||||
<b>j</b> dirspec
|
||||
j <dirspec>
|
||||
|
||||
where dirspec is a few characters of the directory you want to jump to. It will jump to the most used directory whose name matches the pattern given in dirspec. Note that autojump **isn't meant** to be a drop-in replacement for cd, but rather a complement. Cd is fine when staying in the same area of the filesystem; autojump is there to help when you need to jump far away from your current location.
|
||||
|
||||
@ -15,17 +19,17 @@ Autojump supports tab-completion. Try it! Autojump should be compatible with Bas
|
||||
Pierre Gueth contributed a very nice applet for freedesktop desktops (Gnome/KDE/...). It is called "*jumpapplet*", try it!
|
||||
Thanks to Simon Marache-Francisco's outstanding work, autojump now works perfectly with zsh.
|
||||
|
||||
*EXAMPLES*
|
||||
## EXAMPLES
|
||||
|
||||
<b>j</b> mp3
|
||||
j mp3
|
||||
|
||||
could jump to "/home/gwb/my mp3 collection", if that is the directory in which you keep your mp3s.
|
||||
|
||||
<b>j -s</b>
|
||||
j --stat
|
||||
|
||||
will print out something in the lines of:
|
||||
|
||||
<pre>
|
||||
```shell
|
||||
54.5: /home/shared/musique
|
||||
60.0: /home/joel/workspace/coolstuff/glandu
|
||||
83.0: /home/joel/workspace/abs_user/autojump
|
||||
@ -33,32 +37,33 @@ will print out something in the lines of:
|
||||
141.8: /home/joel/workspace/vv
|
||||
161.7: /home/joel
|
||||
Total key weight: 1077
|
||||
</pre>
|
||||
```
|
||||
|
||||
The "key weight" reflects the amount of time you spend in a directory.
|
||||
|
||||
*DOWNLOAD*
|
||||
## DOWNLOAD
|
||||
|
||||
Use the [[github dowloads|http://github.com/joelthelion/autojump/downloads]] to get the latest release, or use git to get the bleeding edge version (should usually work)
|
||||
|
||||
*INSTALLATION*
|
||||
## INSTALLATION
|
||||
|
||||
For automatic installation, make sure that install.sh is executable. If not (or if not sure), run <pre>chmod +x install.sh</pre>
|
||||
|
||||
Once it is executable, run <pre>./install.sh</pre> It will tell you any necessary steps from there.
|
||||
|
||||
Manual installation of autojump is very simple: copy autojump to /usr/bin, autojump.sh to /etc/profile.d, and autojump.1 to /usr/share/man/man1. Make sure you source /etc/profile in your .bashrc:
|
||||
Manual installation of autojump is very simple: copy autojump to /usr/bin, autojump.sh to /etc/profile.d, and autojump.1 to /usr/share/man/man1. Make sure you source the appropriate file in your .bashrc:
|
||||
|
||||
```source /etc/profile```
|
||||
source /etc/profile.d/autojump.sh
|
||||
|
||||
If you do not have root access to your machine, copy @autojump@ to a directory that is in the @PATH@ (for example, @$HOME/local/bin@), copy @autojump.bash@ somewhere convenient, and add @source /path/to/autojump.bash@ in your @.bashrc@.
|
||||
|
||||
*AUTHORS*
|
||||
## AUTHORS
|
||||
|
||||
Joel Schaerer
|
||||
William Ting
|
||||
Autojump applet written by Pierre Gueth
|
||||
Zsh support: Simon Marache-Francisco
|
||||
Install script written by Daniel Jackoway and others.
|
||||
Pierre Gueth (applet)
|
||||
Simon Marache-Francisco (zsh)
|
||||
Daniel Jackoway and others (installation)
|
||||
|
||||
Contact us: autojump@googlegroups.com
|
||||
|
Loading…
Reference in New Issue
Block a user