Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A colorized version for mac #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

A colorized version for mac #53

wants to merge 1 commit into from

Conversation

jl2922
Copy link

@jl2922 jl2922 commented May 30, 2017

No description provided.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants