Note: Improving annoying prompts to make them easier to read. // Linux prompt change

It's a lot of trouble, and I'll write it quickly and briefly. It's a memorandum, it's almost just for me

// .open bashrc
$ vim .bashrc

//Move to the first
# prompt change
export PS="\[e[31m\]FuckMyLife\[\e[0m]: \w \$ "

$ . .bashrc

that's all


Supplement

\ [e [31m ] ~ will be red after this ] \ e [0m] to restore the color

\ w is the current directory \ $ Is just like I saw it.

Recommended Posts

Note: Improving annoying prompts to make them easier to read. // Linux prompt change
Tips to make Python here-documents easier to read
Expand devicetree source include to make it easier to read
Color Python errors (stack traces) to make them easier to understand