Terminal is giving me an invisible prompt

Joined
Nov 9, 2012
Messages
4
Reaction score
0
Points
1
Joined
Feb 26, 2010
Messages
2,116
Reaction score
123
Points
63
Location
Rocky Mountain High, Colorado
Your Mac's Specs
1.8 GHz i7 MBA 11" OSX 10.8.2
You don't have a lot of executable in your zshrc
source $ZSH/oh-my-zsh.sh

if [ -f `brew --prefix`/etc/autojump ]; then
. `brew --prefix`/etc/autojump
fi
If it isn't the brew command (has the .) it may be in that source file too.
 
OP
G
Joined
Nov 9, 2012
Messages
4
Reaction score
0
Points
1
You don't have a lot of executable in your zshrc
source $ZSH/oh-my-zsh.sh

if [ -f `brew --prefix`/etc/autojump ]; then
. `brew --prefix`/etc/autojump
fi
If it isn't the brew command (has the .) it may be in that source file too.

Which source file in particular?

Thanks for your reply, btw. I've been at this for like 5 hours now.
 
Joined
Feb 26, 2010
Messages
2,116
Reaction score
123
Points
63
Location
Rocky Mountain High, Colorado
Your Mac's Specs
1.8 GHz i7 MBA 11" OSX 10.8.2
source $ZSH/oh-my-zsh.sh
is one of the lines in that file. So it isn't clear if it is coming from that file - or from the . 'brew command you have.

That being said - you can start by commenting out everything with a # at the beginning of the line. And start adding stuff back until you break.
 
OP
G
Joined
Nov 9, 2012
Messages
4
Reaction score
0
Points
1
source $ZSH/oh-my-zsh.sh
is one of the lines in that file. So it isn't clear if it is coming from that file - or from the . 'brew command you have.

That being said - you can start by commenting out everything with a # at the beginning of the line. And start adding stuff back until you break.

Ah, I see!

Ok, I've found that the problem is coming from the file that line links to after commenting everything out and uncommenting everything one by one.

Now in that file there's a ton of code.

I guess I'll just have to repeat what I did before in there to figure it out.

Thanks!!
 
OP
G
Joined
Nov 9, 2012
Messages
4
Reaction score
0
Points
1
Apparently it's got somehting to do with this block of code. I'm not sure what it could be though>..

# Load the theme
if [ "$ZSH_THEME" = "random" ]
then
themes=($ZSH/themes/*zsh-theme)
N=${#themes[@]}
((N=(RANDOM%N)+1))
RANDOM_THEME=${themes[$N]}
source "$RANDOM_THEME"
echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..."
else
if [ ! "$ZSH_THEME" = "" ]
then
if [ -f "$ZSH_CUSTOM/$ZSH_THEME.zsh-theme" ]
then
source "$ZSH_CUSTOM/$ZSH_THEME.zsh-theme"
else
source "$ZSH/themes/$ZSH_THEME.zsh-theme"
fi
fi
fi


^ I tried edited that to be easier to see but it didn't work.
 
Joined
Feb 26, 2010
Messages
2,116
Reaction score
123
Points
63
Location
Rocky Mountain High, Colorado
Your Mac's Specs
1.8 GHz i7 MBA 11" OSX 10.8.2
Now you have 3 more source commands - so it could be in any of those files as well.
source "$RANDOM_THEME"

source "$ZSH_CUSTOM/$ZSH_THEME.zsh-theme"

source "$ZSH/themes/$ZSH_THEME.zsh-theme"
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top