From Newsgroup: comp.sys.mac.system
In article <1fxuok2.1y4u7v91xdhvpkN%
aaron@avalon.pascal-central.com>,
aaron@avalon.pascal-central.com (Aaron Davies) wrote:
I've started using zsh instead of bash because the globbing's so great,
but I'm having one annoying problem with it. When I ssh into my box, my
login script fails. My .zshrc looks like this:
export PROMPT='%~%# '
. .profile
but my logins always start
Welcome to Darwin!
/Users/adavies/.zshrc:.:2: no such file or directory: .profile
The idea is that I want to keep all settings common to bash and zsh in
the same file for maintenance purposes. What's wrong here?
It's because your home directory isn't in your PATH. Which is a good
thing; putting $HOME in $PATH is a potential security hazard. In any
event, the fix is simple:
. $HOME/.profile
or
. ./.profile
--
Hank Shiffman
http://www.disordered.org
Have Opinion, Will Travel
hank@disordered.org Mountain View, California
--- Synchronet 3.18b-Win32 NewsLink 1.113