How to Change Bash Custom Prompt (PS1)
-
Linux
CommandLine
CommandOfTheDay
PS1
Overview
- Most of our work on shell prompt.
- By Default,
PS1
is little bit boring. - I’ll show you how to add useful information on your shell prompt
Alert Prompt (PS1)
- Alert Prompt (PS1) change your shell color to RED when your previous command exit status is non zero.
Display Date and Time
Generate Prompt Online
- By using http://bashrcgenerator.com/ you can generate your prompt easily.
NOTE!: For more detailed information use man bash
and search for PROMPTING.
Newsletter
Get updated when I create new content.
Unsubscribe whenever. Never any spam.