Results 1 to 7 of 7
  1. #1


    Member Since
    Nov 09, 2012
    Posts
    4
    Terminal is giving me an invisible prompt
    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

  2. #2

    IvanLasston's Avatar
    Member Since
    Feb 26, 2010
    Location
    Rocky Mountain High, Colorado
    Posts
    2,116
    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.

  3. #3


    Member Since
    Nov 09, 2012
    Posts
    4
    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.

  4. #4

    IvanLasston's Avatar
    Member Since
    Feb 26, 2010
    Location
    Rocky Mountain High, Colorado
    Posts
    2,116
    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.

  5. #5


    Member Since
    Nov 09, 2012
    Posts
    4
    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!!

  6. #6


    Member Since
    Nov 09, 2012
    Posts
    4
    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.

  7. #7

    IvanLasston's Avatar
    Member Since
    Feb 26, 2010
    Location
    Rocky Mountain High, Colorado
    Posts
    2,116
    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"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Curiosity About Terminal Command Prompt
    By PGB1 in forum OS X - Apps and Games
    Replies: 7
    Last Post: 02-17-2015, 09:53 AM
  2. Using Terminal / Opening prompt?
    By kcsummer in forum OS X - Apps and Games
    Replies: 10
    Last Post: 12-10-2012, 05:22 AM
  3. Terminal does not provide prompt
    By 1qa in forum OS X - Operating System
    Replies: 9
    Last Post: 06-18-2009, 11:14 AM
  4. Terminal - Missing command prompt
    By AR3Y35 in forum OS X - Operating System
    Replies: 16
    Last Post: 02-09-2009, 08:59 AM
  5. Customizing the terminal prompt on Mac
    By pkri in forum OS X - Operating System
    Replies: 7
    Last Post: 07-10-2008, 01:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •