Super User is a question and answer site for computer enthusiasts and power users. 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

I want to install Z to my Linux:

Here's the installation notes:

# INSTALL:
#   * put something like this in your .bashrc:
#     . /path/to/z.sh
#   * put something like this in your .zshrc:
#     . /path/to/z.sh
#     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:

    ./path/to/downloaded/file/z.sh
    
    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
1  
finally! thanks zengr :) – Raymond Go Ho Feb 19 '11 at 4:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .