summaryrefslogtreecommitdiff
path: root/system/autojump/README
blob: 3e949333ecdbdb536929609d685269a76be019d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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.  You need to work a little bit before the database
becomes usable. Autojump will listen and rank your 'cd' commands by
frequency. Once your database is reasonably complete, you can "jump"
to a commonly "cd"ed directory.  It supports the bash, zsh, and
tcsh shells.

Additional Installation Steps
------------------------------

Add the following to your .bashrc to enable autojump for your
account:

[[ -s /etc/profile.d/autojump.sh ]] && source /etc/profile.d/autojump.sh

You must open a new shell for autojump to become active.  You may
also need to log in and out of your desktop environment.

The default shell in Slackware is Bash. Further steps may be
required for other shell environments.

Example Usage
--------------

$ cd /tmp
$ cd /home
$ cd /var
$ cd /var/log
$ j tmp
$ j log
$ jo /home
$ j -s

The "j" command drops you back into each directory.  The "jo"
command will launch a file manager for the home directory if
you are using a graphical environment.  Adding "-s" to the "j"
command will list your autojump database.  See the man page
for further details.