The custom shell in Ubuntu generally includes the Host Name and file directory. when too many files are opened, the whole shell will become very long, thus affecting the vision.
Enter $ echo $ SP1 in the terminal to know the default shell style, for example:
\ [\ E] 0; \ [email protected] \ H: \ W \ A \] $ {debian_chroot: + ($ debian_chroot)} \ [email protected] \ h: \ W \ $
Specific meaning of each character this website has a detailed introduction to http://billie66.github.io/TLCL/book/chap14.html
You can change the style of the default shell by modifying SP1 to the desired effect.
How to modify it?
1. Open. Bashrc
For example, understand. bashrc & (open in the background using the understand editor)
2. Locate the second SP1 (SP1 below else) and modify it.
I changed it to SP1 = '\ [\ 033 [01; 36m \] [\ W] \ n [\ 033 [0m \] $ {debian_chroot: + ($ debian_chroot )} [email protected]: \ $'
The final result is as follows:
[~ /Desktop] // display the current directory in this row
[Email protected]: $ // command input for this row
Customized shell in Ubuntu