Lets take a look at how to customize a
bash shell. We’ll be making our shell print a table flip whenever the last command failed. In order to customize your prompt you can overwrite the
PS1 environment variable.
To see what your current prompt is set to you can run
The table flip script looks like this:
Here is a tool that can help you customize your prompt more easily: http://ezprompt.net/
The ArchLinux wiki goes into much more detail about prompt customization: https://wiki.archlinux.org/index.php/Bash/Prompt_customization#Bash_escape_sequences
Join the World of Zero Discord Server: https://discord.gg/hU5Kq2u