I am setting up a new MacBook Pro with iTerm2 and copying over my old command line configuration from a previous Pro. I have powerline-shell installed, as well as zsh with oh-my-zsh. I have the code shown on the powerline-shell install instructions in my .zshrc, and a custom theme file in ~/.oh-my-zsh/custom/themes/theme-name.zsh-theme. powerline-shell is properly changing the prompt, however my custom theme isn't taking effect. Additionally, trying to override the prompt with something like the following in .zshrc has no effect:


What am I missing, and why can't I get the prompt to change, even when it is hardcoded into the .zshrc?

  • did you take a look at the output of the env command. Maybe your manual overwrite gets overwritten again by some other thing. Also is it really the PROMPT that you wanna change and not perhaps the PS1? – konqui Jan 12 '18 at 12:10
  • I don't see PROMPT or PS1 in env. I'm using PROMPT because I had seen multiple places online saying that zsh should use PROMPT over PS1 for prompt changes. – RedBassett Jan 12 '18 at 15:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.