I want to install Z to my Linux:https://github.com/rupa/z/

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..

link|improve this question
thats not helpful at all – Raymond Go Ho Feb 19 '11 at 3:43
feedback

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.

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

Your Answer

 
or
required, but never shown

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