Can't seem to get it working :/ #60

Closed
s10wen opened this Issue Aug 23, 2012 · 2 comments

Projects

None yet

2 participants

@s10wen
s10wen commented Aug 23, 2012

I'm using Mac OS X, I couldn't find .zshrc or .bashrc files so I created them in the directory:
/Users/simonowen/

with the following code:

.zshrc:
. /Users/simonowen/z.sh
function precmd () {
_z --add "$(pwd -P)"
}

.bashrc:
. /Users/simonowen/z.sh

Added the z.sh file from:
https://github.com/rupa/z/blob/master/z.sh
to:
/Users/simonowen/z.sh

I then opened terminal, did some cd, then tried using z, but got the following error:
-bash: z: command not found

Tried closing and opening Terminal again, but still get the same error.

@rupa
Owner
rupa commented Aug 23, 2012

OSX needs a little extra setup than Linux - your .bashrc isn't getting processed. See this http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html and try what they are saying about ~/.bash_profile.

Also, you don't need the .zshrc stuff unless you are using zsh, which you aren't.

@rupa
Owner
rupa commented Aug 28, 2012

Some more specific install help for OSX added to wiki FAQ.

@rupa rupa closed this Aug 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment