Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
    
google.com/search?q=what+is+.bashrc –  Hello71 Feb 19 '11 at 3:38
    
thats not helpful at all –  Raymond Go Ho Feb 19 '11 at 3:43
add comment

1 Answer

up vote 0 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
add comment

Your Answer

 
discard

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.