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 trialAlexander Davison
65,469 PointsHow 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
Treehouse Guest TeacherI 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.
Alexander Davison
65,469 PointsThank you! :)
Alexander Davison
65,469 PointsBy 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
25,909 PointsHi Alexander, you could use something like zsh or even oh-my-zsh to style you terminal.
Alexander Davison
65,469 PointsHuh?
Alexander Davison
65,469 PointsAlexander Davison
65,469 PointsKenneth Love