Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'zsh functions ?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
zsh functions ?
Authored by: mug1 on Sep 19, '03 04:34:06AM

where to you put zsh function definitions in order to be able to use them on the command line? it is not the .cshrc, is it?
(might be obvious to most of you... for some maybe it isn't)


---
----
chris



[ Reply to This | # ]
zsh functions ?
Authored by: gatorparrots on Sep 19, '03 01:40:15PM
With zsh you can put the functions just about anywhere you like:
       Commands  are  then  read  from  $ZDOTDIR/.zshenv.  If the
       shell is a login shell, commands are read from  /etc/zpro-
       file  and  then $ZDOTDIR/.zprofile.  Then, if the shell is
       interactive, commands are read from  /etc/zshrc  and  then
       $ZDOTDIR/.zshrc.   Finally, if the shell is a login shell,
       /etc/zlogin and $ZDOTDIR/.zlogin are read.

       If  ZDOTDIR  is  unset, HOME is used instead.  Those files
       listed above as being in /etc may be in another directory,
       depending on the installation.
These functions should also work under the bash shell, but I have not tested them in that environment.

[ Reply to This | # ]