Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I install the shell "z" script directory jumper on Ubuntu 12.10?

share|improve this question
up vote 6 down vote accepted

In the z readme after line 48, it says:


Put something like this in your $HOME/.bashrc or $HOME/.zshrc:

. /path/to/

cd around for a while to build up the db.

You need to download the file to a directory of your choosing, then tell your .bashrc where it is, so your terminal can find it. (The same applies for z-shell, which is just another shell system.) Then, after you use bash for a while, z will know your favorite locations.

share|improve this answer

You can download and add to *rc files using command line as so

# Download to latest to home dir
wget -O ~/
# Add to .bashrc
echo . /path/to/ >> ~/.bashrc
# Add to .zshrc
echo . /path/to/ >> ~/.zshrc
share|improve this answer
@VolkerSiegel There is no link in this answer at all, so your comment isn't very helpful. David: It is true however that your answer doesn't provide much explanation. I see the shell comments, but could you expand on those in the answer itself? Thanks. – Seth Sep 14 '14 at 17:02
@Seth Yes, I asked on meta related to handling this as "link only", and learned something:… I mixed up flagging with commenting on close. – Volker Siegel Sep 14 '14 at 17:06
@Alexis Why /usr/local/bin? Why executable permissions? It doesn't look like this file has to be executed directly, or that it needs to be somewhere in PATH. – muru Nov 27 '15 at 6:30
@muru Feel free to re-edited if you're not in agreement, here is a thread…, but respect to permissions, i could be wrong, not my strong area, i couldn't find where i get this recommendation, regards – Alexis Nov 27 '15 at 17:53
@Alexis Yep, I'm rolling back. Nothing so far indicates that the script needs to be in PATH or that it needs to be executable by the user. – muru Nov 27 '15 at 17:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.