Skip to content

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