gpt-4o-mini-2024-07-18· OpenAI
WildChat-4.8M (AI2)
change it to gruvbox them export PS1='\n\[\e[38;5;4m\][\w]\[\e[38;5;5m\] > \[\e[0m\]'
- User
change it to gruvbox them export PS1='\n[\e[38;5;4m][\w][\e[38;5;5m] > [\e[0m]'
- Assistant
To adapt your existing PS1 prompt to use the Gruvbox color scheme, you can replace the color codes with those that match the Gruvbox palette. The Gruvbox theme typically features colors that provide a good contrast and are easier on the eyes.
Here's your original prompt in a Gruvbox style:
export PS1='\n\[\e[38;5;11m\][\w]\[\e[38;5;14m\] > \[\e[0m\]'Explanation:
\[\e[38;5;11m\]sets the text color to a shade of yellow (Gruvbox yellow).\[\e[38;5;14m\]sets the text color to a shade of cyan (Gruvbox aqua).\[\e[0m\]resets the text color back to default.
Usage:
You can copy and paste the above line into your terminal or include it in your
~/.bashrcor~/.bash_profileto apply it every time you open a new terminal session. Be sure to reload your terminal or runsource ~/.bashrcorsource ~/.bash_profileafter making changes.