Change the bash prompt to a simple color for easy viewing

reference

This was helpful!

Method

Add to .bashrc. The number 37 is a color code and you can choose from 30 to 37. Choose the one that suits your terminal.

export PS1='\n \[\e[1;37m\]\w \n \[\e[1;37m\]> \[\e[m\]
'

[After change(home directory)]
 ~
 > 


Recommended Posts

Change the bash prompt to a simple color for easy viewing
Change the list in a for statement
How to write a ShellScript Bash for statement
Prompt to give a synonym for each login
A simple workaround for bots to try to post tweets with the same content
[python] Change the image file name to a serial number
Change the standard output destination to a file in Python
Note 2 for embedding the scripting language in a bash script
A simple way to avoid multiple for loops in Python
I want to create a Dockerfile for the time being.
Let's write a simple simulation program for the "Monty Hall problem"
How to change the log level of Azure SDK for Python
How to change the color of just the button pressed in Tkinter
How easy is it to synthesize a drug on the market?
Create a color picker for the color wheel with Python + Qt (PySide)
[Go] Create a CLI command to change the extension of the image
[Introduction to Python] How to use the in operator in a for statement?
[Python] A simple function to find the center coordinates of a circle
Change the Flyweight pattern to Pythonic (?) (3)
Change the Flyweight pattern to Pythonic (?) (2)
A memorandum to change to Manjaro Linux
Change the Flyweight pattern to Pythonic (?) (1)
How to change vim color scheme
[Python] Change the alphabet to numbers
I want to change the color by clicking the scatter point in matplotlib
[Introduction to Udemy Python3 + Application] 47. Process the dictionary with a for statement
AtCoder writer I wrote a script to aggregate the contests for each writer
[Python / Tkinter] Search for Pandas DataFrame → Create a simple search form to display
A guidebook for doing IoT with MicroPython easily to the last minute