Create a more readable bash prompt

In iTerm: When I’m working with several sites, it’s hard to see, from the prompt, which site I’m on.

I changed the prompt to PS1=’`wp option get blogname`:\w$ ’ which gives me a more readable prompt.

Could you add this as a default ?

2 Likes

With the latest 5.0.x releases of Local, the terminal that is used for the WordPress sites is the same one that is used by the main machine which should make it easier to update the prompt to whatever you need.

I like the idea of using wp-cli to get the site info for a better terminal experience.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.