| %/ | Current working directory. |
| %~ | cwd. If it starts with $HOME, that part is replaced by a ~. In addition if a directory name prefix matches a user's home directory, that part of the directory will be substituted with ~user. NOTE: The ~user substitution will only happen if the shell has performed a ~ expansion for that user name in this session. |
| %c or % | Trailing component of cwd, may be followed by a digit to get more than one component, if it starts with $HOME, that part is replaced with a ~. |
| %C | Trailing component of cwd, may be followed by a digit to get more than one component, no~ substitution. |
| %h, %!, ! | Current history event number. |
| %M | The full machine hostname. |
| %m | The hostname up to the first ".". |
| %t or %@ | Current time of day, in 12-hour, am/pm format. |
| %T | Current time of day, in 24-hour format. (But see the ampm shell variable below.) |
| %p | Current time in 12-hour format, am/pm format with seconds. |
| %P | Current time in 24-hour format, with seconds. |
| %% | A single %. |
| %n | The user name, contents of $user. |
| %d | The weekday in <Day> format. |
| %D | The day in dd format. |
| %w | The month in <Mon> format. |
| %W | The month in mm format. |
| %y | The year in yy format. |
| %Y | The year in yyyy format. |
| %L | clear from prompt to end of display or end of line. |
| %# | A '#' if tcsh is run as a root shell, a '>' if not. |
| %? | return code of the last command executed just before the prompt. |
| %R | In prompt3 this is the corrected string; in prompt2 it is the status the parser. |
| \t | the current time in HH:MM:SS format |
| \d | the date in "Weekday Month Date" format (e.g., "Tue May 26") |
| \n | newline |
| \s | the name of the shell, the basename of $0 (the portion following the final slash) |
| \w | the current working directory |
| \W | the basename of the current working directory |
| \u | the username of the current user |
| \h | the hostname |
| \# | the command number of this command |
| \! | the history number of this command |
| \$ | if the effective UID is 0, a #, otherwise a $ |
| \nnn | the character corresponding to the octal number nnn |
| \\ | a backslash |
| \[ | begin a sequence of non-printing characters, which could be used to
embed a terminal control sequence into the prompt |
| \] | end a sequence of non-printing characters |
| -b | True if file exists and is block special. |
| -c | True if file exists and is character special. |
| -d | True if file exists and is a directory. |
| -e | True if file exists. |
| -f | True if file exists and is a regular file. |
| -g | True if file exists and is set-group-id. |
| -k | True if file has its ``sticky'' bit set. |
| -L | True if file exists and is a symbolic link. |
| -p | True if file exists and is a named pipe. |
| -r | True if file exists and is readable. |
| -s | True if file exists and has a size greater than zero. |
| -S | True if file exists and is a socket. |
| -u | True if file exists and its set-user-id bit is set. |
| -w | True if file exists and is writable. |
| -x | True if file exists and is executable. |
| -O | True if file exists and is owned by the effective user id. |
| -G | True if file exists and is owned by the effective group id. |