I am using Robby Russell's "oh-my-zsh" extension on OSX 10.5 Leopard. However I find that it's not loaded by default.. when I start a new Terminal it uses the "default" ZSH prompt, and I must manually type "zsh" and press Return to get the "enhanced" prompt. My
.zshrc file lists the ZSH path as pointing to the oh-my-zsh directory:
This gets very annoying because every time I open a new tab I've got to type zsh again (as an aside is it possible to get a new tab to remember my current working directory? I mainly write Rails apps so I'll have 2-3 windows open inside the same directory and it's frustrating to have to cd back into it every time). Is there an easy way to get it automatically start oh-my-zsh when I open a terminal so I don't have to type zsh every time?
I automatically installed oh-my-zsh following Robby's instructions on Github, so here's the .zshrc it created for me:
# Path to your oh-my-zsh configuration. export ZSH=$HOME/.oh-my-zsh # Set to the name theme to load. # Look in ~/.oh-my-zsh/themes/ export ZSH_THEME="maran" # Comment this out to disable weekly auto-update checks # export DISABLE_AUTO_UPDATE="false" source $ZSH/oh-my-zsh.sh # Customize to your needs... export PATH=/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr /local/bin:/usr/X11/bin:/usr/local/git/bin export GIT_EDITOR="mate -w"
I tried changing the default shell to point to that but then I get an error saying it's been set to an illegal variable. The $HOME variable points correctly to my home directory, but it doesn't seem to be loading until I type zsh in the terminal when I have the regular zsh prompt.
Here is the output of
pstree -wp $$
-+= 00001 root /sbin/launchd \-+= 00066 waynemolina /sbin/launchd \-+= 68844 waynemolina /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal -psn_0_704684 \-+= 68845 root login -pfq waynemolina /bin/zsh \-+= 68846 waynemolina -zsh \-+= 68939 waynemolina pstree -wp 68846 \--- 68940 root ps -axwwo user