LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Making zsh see my scripts (https://www.linuxquestions.org/questions/linux-software-2/making-zsh-see-my-scripts-866160/)

dar_beh_dar 03-03-2011 01:52 AM

Making zsh see my scripts
 
Hello everyone,

I am using Ubuntu (9.04) and recently installed the Zed shell 'zsh'.
I am planning to explore it a bit before setting it as my default shell.
I did go through the configuration steps at the start when I first invoked
'zsh'.

In 'bash' I can use a series of customized search scripts which I keep in a subdirectory in my home directory say /home/thisuser/scripts.

This has been added to the $PATH and in 'bash' I can see the utilities contained in there and use them.

When I invoke 'zsh' from 'bash', 'zsh' can't see my '~/scripts' directory and its contents even though you can type

echo $PATH

and you'll see the :~/scripts: components in the path.

I know I'm doing something wrong..but what?

Regards

dar_beh_dar

kuyalfinator 03-03-2011 02:47 AM

Is your ZSH scripts set as executable? Try the chmod command. chmod 640 or chmod 700 on the script your trying to access.

dar_beh_dar 03-03-2011 03:58 AM

Positive.

They are all -rwxrwxr-x and are all kept under '~/scripts'

However your suggestion caused me to do something else:

I changed '~' to '/home/<user>/' and bada-bing...it works!

I think that it might vaguely have to do with differences
between 'zsh' and 'bash'.


All times are GMT -5. The time now is 09:12 PM.