How to Customize your Terminal Prompt On OS X Yosemite 10.10

Edit your .bash_profile with terminal command below;

Add this line:

(emoji) you can simply drag and drop the emoji into the text line.

.bash_profile in Nano editor

.bash_profile in Nano editor

Between the quotation marks of export PS1=” “, you can add the following lines to customize your Terminal prompt:

  • \d – Current date
  • \t – Current time
  • \h – Host name
  • \# – Command number
  • \u – User name
  • \W – Current working directory (ie: Desktop/)
  • \w – Current working directory with full path (ie: /Users/Admin/Desktop/)
Published on: 2015/06/13

Leave a Reply

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram