Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I want to install Z to my Linux:

Here's the installation notes:

#   * put something like this in your .bashrc:
#     . /path/to/
#   * put something like this in your .zshrc:
#     . /path/to/
#     function precmd () {
#       z --add "$(pwd -P)"
#     }
#   * cd around for a while to build up the db
#   * PROFIT!!

The problem is I'm a newbie in Linux, please give me an easy to understand guide.. This installation notes are just too hard to understand..

share|improve this question
thats not helpful at all – Raymond Go Ho Feb 19 '11 at 3:43
up vote 1 down vote accepted

Open terminal.

  1. Go to /home/your-linux-username
  2. Type this: gedit .bashrc
  3. At the end of .bashrc, paste this:

    function precmd () {
         z --add "$(pwd -P)"
  4. You are done.

Now, close restart your terminal, fire some cd commands, like: cd /home/id

then z dir-name will work.

share|improve this answer
finally! thanks zengr :) – Raymond Go Ho Feb 19 '11 at 4:26

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.