1. Show only Current directory
Vim ~/.BASHRC
Find Location:
if " $color _prompt " Then PS1= ' Else PS1 = ' ' fi
Replace the two lowercase w with the upper case W, then source ~/.BASHRC
2. Terminal color beautification
Vim ~/.BASHRC then this line of comment is removed, open the switch of this variable, you can use the color command line prompt
# Force_color_prompt=yes
The effect of turning off Force_color_prompt is as follows:
And the effect after opening is as follows:
In addition, you can customize PS1 colors and other information, such as:
if " $color _prompt " Then PS1=''
The effect is as follows:
For more settings, refer to the following link:
Output color text http://www.linuxidc.com/Linux/2011-08/41473.htm under Linux terminal
Output of colors under Linux Terminal [text] http://www.linuxidc.com/Linux/2009-03/18792.htm
Ubuntu Linux Terminal Landscaping http://www.linuxidc.com/Linux/2012-07/65520.htm
Linux terminal settings display only the current directory and the terminal beautification