I'm trying to use z (link) to make navigating a little easier. The problem is that I have the following in my .zshrc file, but it doesn't seem to work:
export PATH=$PATH:/home/x/z
alias z='/home/x/z/z.sh'
. z
For some reason, the last command never seems to work. If I do it by hand after opening the shell, it's fine but executing it within the .zshrc will not work.
. xrather than. z?source(and its alias.) doesn't consult the list of aliases. Does it work any better if you just specify the full path to the file on that third line? (Note that you can use~as a shorthand for the path to your home directory.)\source z).