PS1 tricks for bash shell environment

use

export PS1="\[$(tput setaf 4)\]\[$(tput bold)\]\u@\h:\W\\$ \[$(tput sgr0)\]"

instead of

export PS1="\[\e[1;34m\]\u@\e[1;31m\h\e[m\[\e[1;34m\]:\W>\[\e[0m\]"

in .environment file, to avoid overlapping of long commands in bash shell

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s