Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Question about installation #51

Closed
commadelimited opened this Issue · 2 comments

2 participants

Andy Matthews rupa
Andy Matthews

This is the first custom shell script I've "installed" and I wanted to make sure I'm doing it right.

Location:
~/shell_stuff/z.sh

In ~/.bashrc
. ~/shell_stuff/z.sh

I start a new terminal window and cd around, but when I try to use z: z autocom it tells me the z command is not found.
I'm sure I'm leaving something out, but what am I missing? Do I also need the z.1 file?

rupa
Owner

Looks right, so your .bashrc probably isn't getting sourced for some reason. You might need to put a line in ~/.profile that sources ~/.bashrc or something. z.1 is a man page.

Andy Matthews

Yep. That's what I ended up doing. Had to put this line:
. ~/shell_stuff/z.sh

into ~/.bash_profile

Now it works like a champ. Thanks a lot for this. Minor productivity boosts for the win.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.