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

Terminal PS1

Jim Hoskins, how did you get the UTF-8 arrow in the terminal as your PS1. Ive been trying to figure this out and haven't come up with anything

1 Answer

James Barnett
James Barnett
39,199 Points

This requires 2 steps...

1 - Make sure your terminal character encoding is set to UTF-8

  • In Putty it's Configuration -> Window ? Translation ? UTF-8
  • In Terminal app on OS X it's Preferences ? Advanced ? Character Encoding ? Unicode (UTF-8)

source: setting the character encoding in on a terminal

2 - Find the Octal Esapce Sequence for character you want use

I checked out graphemica and found a nifty arrow ? The octal escape sequence to use in your *PS1 variable is \342\206\222.