[X-Unix] Changing the default shell

William H. Magill magill at mcgillsociety.org
Thu Jul 15 11:41:50 PDT 2004


On 15 Jul, 2004, at 12:33, Larry Helms wrote:
> Each shell uses a different set of files - which controls what gets 
> setup
> when you logon/logoff.  Personally, I prefer to use the zsh shell... 
> As it
> is most 'Korn' like.
. . .
> zsh             Global: /etc/zshenv, /etc/zshrc, /etc/zlogin, 
> /etc/zlogout
>                 Local:  $HOME/.zshenv, $HOME/.zprofile, $HOME/.zlogin

Running zsh as ksh  (i.e. ln /bin/zsh /bin/ksh) allows one to use the 
"standard" ~/.profile initialization files as well.  (This was how 
apple had implemented "sh" back in 10.0 and, if I remember correctly, 
10.1 -- they changed the sh link to bash in 10.2)

Note that all of these shell initialization files, effect ONLY the 
shell -- not your login window. To modify that, you need to create a 
directory "~/.MacOSX" and insert things like path commands into an 
"environment.plist" file.

(For more info, search the developer site: "www.apple.com/macosx" click 
on the developer tab; for "environment.plist" .)


T.T.F.N.
William H. Magill
# Beige G3 - Rev A motherboard - 768 Meg
# Flat-panel iMac (2.1) 800MHz - Super Drive - 768 Meg
# PWS433a [Alpha 21164 Rev 7.2 (EV56)- 64 Meg]- Tru64 5.1a
# XP1000  [Alpha EV6]
magill at mcgillsociety.org
magill at acm.org
magill at mac.com



More information about the X-Unix mailing list