Maintained by Thijmen Heuvelink
Enhance your terminal's appearance with these custom PS1 scripts for your .bashrc file, offering a more polished and visually appealing alternative to the default setup.
You can enhance your terminal's appearance by modifying the PS1
variable in your .bashrc
file. Below are two examples of PS1 scripts, along with instructions on how to use them.
export PS1='\[\e[0;1m\]\u\[\e[0m\]@\[\e[0;1m\]\H \[\e[0;36m\]\w \[\e[0m\]\$ '
\u
)\H
)\w
)$
symbol to indicate the shell is ready for inputexport PS1='\[\e[0;1m\]ThijmenGThN \[\e[0;36m\]\w \[\e[0m\]\$ '
\w
)$
symbol for inputEdit your .bashrc
file:
Open your .bashrc
file in a text editor:
nano ~/.bashrc
Add the desired script: Paste one of the scripts at the end of the file.
Apply the changes: Save the file and reload the shell configuration by running:
source ~/.bashrc
Enjoy your new prompt: Your terminal prompt will now display according to the selected script!
Feel free to tweak the scripts to match your personal preferences or workflow needs. For example, you can add the current time, change colors, or adjust formatting.
This knowledge base serves as a valuable tool to simplify installations, troubleshoot common problems and to enhance the overall developer / admin experience. mail@thijmenheuvelink.nl - all rights reserved