Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ end of the same file you pasted the installation code into earlier.
#### Mac OS X

```bash
# Standard
export PS1="\u@\h \W \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "

# Colorized:)
export PS1="\[\033[01;32m\]\u@\h \[\033[01;34m\]\w\[\033[00m\] \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "
Copy link

@joeytwiddle joeytwiddle Jun 22, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use definitions from the colors.sh file, provided you set PS1 after loading prompt.sh.

In this case \[$bldgrn\] and \[$bldblu\] and \[$txtrst\]

The advantage of these codes generated by tput is that they will display better in color-limited terminals.

```

Optionally, if you want a nice pretty prompt when using `sudo -s`, also add
Expand Down