\e An escape character (typically a color code). \nnn The character whose ASCII code is the octal value nnn. \$ If you are not root, inserts a "$" if you are root, you get a "#" (root uid = 0) \V The release of Bash, version patchlevel (e.g., 2.00.0) \T The time, in 12-hour HH:MM:SS The time, in 12-hour am/pm format. \s The name of the shell, the basename of $0 (the portion following \l The basename of the shell's terminal device name. \j The number of jobs currently managed by the shell. \d The date, in "Weekday Month Date" format (e.g., "Tue May 26"). I also found this useful: Special prompt variable characters: In order to make these settings permanent, edit the /etc/bashrc file:įind this line:
0 Comments
Leave a Reply. |