NerdCred++; How to Customize your Bash Prompt
summary
Shows how to turn the default shell line into an information-dense prompt by setting the PS1 variable, writing it into ~/.bashrc and applying it with source so changes persist. Demonstrates escape sequences and ANSI color codes, extracting git state (branch name, clean/dirty, ahead/behind) into visible symbols, and wrapping colors in variables for readability. Mentions using a pre-prompt hook for dynamic data, links to GitHub gists and slides with ready-made snippets.
AI-written summary · about
chapters (6)
- 0:00Start
- 1:04What Is the Command Line Prompt
- 1:27What Is Your Bash Prompt
- 12:28Color Codes
- 17:08Variables
- 17:21Variables and Bash
related talks
44mTricking Out the Terminal: An Introduction
46mBasic To Boss: Customizing Your PowerShell Prompt
45mPutting the "Pro" in PowerShell Profiles!
29mTake Back Your Bash by Becoming a CLI Ninja!
34mThe Ruby Developer's Command Line Toolkit
39mThe Ruby Developer's Command Line Toolkit
47mA Guide to the Shell Galaxy
38mTerminal Whispering
