New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
iOS Development Discussion on developing apps for the iOS platform.

Terminal is giving me an invisible prompt


Post Reply New Thread Subscribe

 
Thread Tools
graffist

 
Member Since: Nov 09, 2012
Posts: 4
graffist is on a distinguished road

graffist is offline
I'm having a hard time finding and answer to this question. If any other noobies see this hopefully an answer will surely be of a HUGE use to them.

I starting having this issue after getting github set up on my mac.

Here's where I've started a question on it and what I've done so far to try to fix it.

Thanks for your time

Terminal is not letting me make commands unless I hit enter a bunch of times - Super User
QUOTE Thanks
IvanLasston

 
IvanLasston's Avatar
 
Member Since: Feb 26, 2010
Location: Rocky Mountain High, Colorado
Posts: 2,116
IvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to behold
Mac Specs: 1.8 GHz i7 MBA 11" OSX 10.8.2

IvanLasston is offline
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.
QUOTE Thanks
graffist

 
Member Since: Nov 09, 2012
Posts: 4
graffist is on a distinguished road

graffist is offline
Quote:
Originally Posted by IvanLasston View Post
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.
QUOTE Thanks
IvanLasston

 
IvanLasston's Avatar
 
Member Since: Feb 26, 2010
Location: Rocky Mountain High, Colorado
Posts: 2,116
IvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to behold
Mac Specs: 1.8 GHz i7 MBA 11" OSX 10.8.2

IvanLasston is offline
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.
QUOTE Thanks
graffist

 
Member Since: Nov 09, 2012
Posts: 4
graffist is on a distinguished road

graffist is offline
Quote:
Originally Posted by IvanLasston View Post
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!!
QUOTE Thanks
graffist

 
Member Since: Nov 09, 2012
Posts: 4
graffist is on a distinguished road

graffist is offline
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.
QUOTE Thanks
IvanLasston

 
IvanLasston's Avatar
 
Member Since: Feb 26, 2010
Location: Rocky Mountain High, Colorado
Posts: 2,116
IvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to behold
Mac Specs: 1.8 GHz i7 MBA 11" OSX 10.8.2

IvanLasston is offline
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"
QUOTE Thanks

Post Reply New Thread Subscribe


« simple game | HOW to start? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Terminal console hanging in Lion gpr78 OS X - Operating System 26 10-23-2011 09:22 PM
Show path at the tab title and the cmdline prompt in mac terminal ypsd OS X - Development and Darwin 0 07-25-2011 04:55 PM
Use Applescript to run a terminal command Turk182 OS X - Development and Darwin 1 02-12-2009 12:08 PM
Terminal - Missing command prompt AR3Y35 OS X - Operating System 16 02-09-2009 07:59 AM
Folders invisible in Terminal oliq OS X - Operating System 0 06-02-2007 04:37 AM

All times are GMT -4. The time now is 06:11 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?