From Wikibooks, open books for an open world
Jump to navigation Jump to search


Template documentation[edit] [history] [purge]

This template formats a w:Bourne shell-style prompt and is intended to be used in “leading space” preformatted sections.

The prompt will use prompt and prompt-sh HTML/CSS classes, and also an explicit font-weight: bolder CSS style.


  • {{Sh$}}
  • {{Sh$|Prompt text }}
  • {{Sh$|1=Prompt text with a = inside }}


{{Sh$}}<kbd >hello </kbd>
<samp>Hello, world!</samp>
$ hello 
Hello, world!
{{Sh$|# }}<kbd >apt-get install \
      -- ascii </kbd>
# apt-get install \
      -- ascii