Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 895645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:35:32+00:00 2026-05-15T14:35:32+00:00

I recently upgraded my system to snow leopard and now my prompt doesn’t work

  • 0

I recently upgraded my system to snow leopard and now my prompt doesn’t work properly. I have this line in my .zshrc file:

PROMPT='%{$fg_no_bold[cyan]%}%n@%{$fg_no_bold[red]%}%m%{$fg_no_bold[green]%}$(git_branch)%{$reset_color%}: '

(where “git_branch” is a function that give me information about the current git branch I’m working on). The problem is that the colors and “git_branch” function aren’t being evaluated, they are taken literally, so my prompt is:

%{$fg_no_bold[cyan]%}username@%{$fg_no_bold[red]%}machinename%{$fg_no_bold[green]%}$(git_branch)%{$reset_color%}: 

The colors are nice, but the part I’d really like to get working is the git branch info. I’ve been googling, but haven’t found anything yet. I’m a bit of a noob when it comes to zsh, so links to helpful resources would also be appreciated.

zsh --version
zsh 4.3.9 (i386-apple-darwin10.0)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T14:35:32+00:00Added an answer on May 15, 2026 at 2:35 pm

    After looking at a bunch of config files I discovered that adding these lines:

    setopt prompt_subst
    autoload colors
    
    colors
    

    caused my prompt to correctly interpret my color codes again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently upgraded my machine from Leopard to Snow Leopard. Also I installed the
I recently upgraded a Joomla installation to 1.7. Due to this the linking system
I recently upgraded to Mountain Lion from Snow Leopard, and in doing so threw
I recently upgraded to Snow Leopard and it seems IntelliJ can't start with memory
Recently we upgraded our TFS server 2008 to 2010. Now, we have got problems
I recently upgraded my system to Windows 7 Enterprise. I have created an install
Recently upgraded my Android SDK install to r20 and now keyboard input seem to
I recently upgraded to the latest version of XCode, but apps made with this
I recently upgraded from jQuery 1.2.6 to 1.3.2 Now on the page I'm using
I recently upgraded a C# project from .NET 3.5 to .NET 4. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.