• ZSH Prob--.profile Won't Run When SSH'ing

    From aaron@aaron@avalon.pascal-central.com (Aaron Davies) to comp.sys.mac.system on Wednesday, July 09, 2003 22:20:16
    From Newsgroup: comp.sys.mac.system

    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?
    --
    Aaron Davies
    Opinions expressed are solely those of a random number generator.
    "I don't know if it's real or not but it is a myth."
    -Jami JoAnne of alt.folklore.urban, showing her grasp on reality.

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Hank Shiffman@hank@disordered.org to comp.sys.mac.system on Wednesday, July 09, 2003 20:55:24
    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