Customizing the command prompt


show more Customizing the command prompt provides you with in-depth training on IT. Taught by Kevin Skoglund as part of the Unix for Mac OS X Users show less
please wait ...

Customizing the command prompt

In this movie we're going to learn how to customize the Unix command prompt. And we talked about long time ago the prompt is this bit of text right here that occurs before every line, right, to prompt you to enter something. I don't know why, but it's very, very satisfying to customize that to something that you like. Maybe it's because it's the part of Unix that you see most often, but it's really useful to be able to customize that and make it look exactly the way that you want. The way that we're going to do that is with a shell variable. And we saw shell variables in the last movie. The shell variable we want here is PS1. That's for the main command prompt.

There's also a PS2, 3 and 4. those are for other prompts that occur in other contexts and we don't need to worry about those. PS1 is the one we want. PS1= and then we can make it equal to whatever we want, so -->. It's always a good idea to put a space after it just so that it separates t...

Customizing the command prompt
Video duration: 6m 5s 6h 35m Beginner

Viewers:

Customizing the command prompt provides you with in-depth training on IT. Taught by Kevin Skoglund as part of the Unix for Mac OS X Users

Subject:
IT
Software:
Mac OS X Unix
Author:
please wait ...