Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Console Foundations Getting Started with the Console Moving Around the Filesystem

How do you change the Command Prompt?

Can someone explain how to change the Command Prompt?

I know it's possible because I saw @Kenneth Love once with a different prompt (I mean a completely diffferent prompt that was obviously was customized by Kenneth).

How do you change the prompt?

Here's the video where Kenneth used a different prompt (a heart prompt lol): Harnessing the Power of Vim

Please provide the command or something.

Thank you! I appreciate any help :)

2 Answers

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

I use zsh as my shell (instead of the Mac-default bash) and I have a custom theme set up through oh-my-zsh. Google can tell you a ton about both of those things and show you how to set them up yourself if you want. I think there's an oh-my-bash, too, if you don't want to switch shells.

Thank you! :)

By the way I just found a way to change the prompt while using Bash.

All you need to do is to type in:

PS1="Your prompt "

And to change it forever, you just need to add that to the end of a file called .bashrc in you home directory.

Moritz Lang
Moritz Lang
25,909 Points

Hi Alexander, you could use something like zsh or even oh-my-zsh to style you terminal.

Huh?