In this video, customize your Zsh prompt. There are many ways to modify the prompt to display useful information.
- [Instructor] So far in this course, … we've seen the Zsh prompt … as the machine name and the percent sign … or a pound sign for the superuser followed by a space. … But the prompt can be changed … to include other useful information … and even to have colorful styles. … If you work with the shell a lot, … it can be nice to surface some more information … and to personalize the prompt in a way that appeals to you. … In order to change the prompt, … we'll modify the prompt environment variable. … Let's take a look at what it's currently set to … with echo $PROMPT. … This formatting string uses some placeholders … for specific pieces of information. … %m represents the machine's local name … and %# represents the percent sign … when we're acting as a regular user … and shows a pound sign when we're acting as root … or using superuser privileges. … While there are many placeholders you can use, … we'll take a look at just a few here … to get a sense of how modifying the prompt works. …
- Using Zsh as your primary shell
- Functions in Zsh
- Navigating your file system with Zsh
- Finding files and commands
- Autocompletion in Zsh
- Recalling and using previous commands
- Writing scripts using Zsh
- Configuring Zsh
- Customizing the prompt
Skill Level Intermediate
Linux: Bash Shell and Scriptswith Kevin Dankwardt2h 46m Intermediate
1. Zsh Foundations
2. Using Zsh
3. Customizing Zsh
Next steps1m 28s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.