Nhật Hương
Member
How do I change the prompt color in bash?
Answer
Bash allows these prompt strings to be customized by inserting a number of backslash-escaped special characters.
…
Task: Adding colors to the prompt
Answer
Bash allows these prompt strings to be customized by inserting a number of backslash-escaped special characters.
…
Task: Adding colors to the prompt
- e[ : Start color scheme.
- x;y : Color pair to use (x;y)
- $PS1 : Your shell prompt variable.
- e[m : Stop color scheme.