Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
bash:tip_customize_the_shell_prompt [2011/06/22 11:37]
flozz [Links]
bash:tip_customize_the_shell_prompt [2011/06/22 11:48]
flozz [Special sequences]
Line 22: Line 22:
 ^ Sequence ​        ^ description ​                                                                      ^ Example/​Preview ​                ^ ^ Sequence ​        ^ description ​                                                                      ^ Example/​Preview ​                ^
 |  \d              | The date (''​+%a\ %b\ %d''​ format) ((''​date''​ command format)) ​                     | ''​Mon Jun 13'' ​                 | |  \d              | The date (''​+%a\ %b\ %d''​ format) ((''​date''​ command format)) ​                     | ''​Mon Jun 13'' ​                 |
-|  \D{//​format//​} ​ | The date in the desired //format// (in ''​strftime''​ format) ​FIXME                  ​|                                 |+|  \D{//​format//​} ​ | The date in the desired //format// (in ''​strftime''​ format) ​((Not supported by Prompt Helper))  ​|                                 |
 |  \t              | The time, 24-hour (''​+%k:​%M:​%S''​ format) ((''​date''​ command format)) ​              | ''​22:​42:​01'' ​                   | |  \t              | The time, 24-hour (''​+%k:​%M:​%S''​ format) ((''​date''​ command format)) ​              | ''​22:​42:​01'' ​                   |
 |  \T              | The time, 12-hour (''​+%l:​%M:​%S''​ format) ((''​date''​ command format)) ​              | ''​10:​42:​01'' ​                   | |  \T              | The time, 12-hour (''​+%l:​%M:​%S''​ format) ((''​date''​ command format)) ​              | ''​10:​42:​01'' ​                   |
 |  \@              | The time, 12-hour, with AM/PM (''​+%l:​%M\ %p''​ format) ((''​date''​ command format)) ​ | ''​10:​42 PM''​ or ''​10:​42'' ​      | |  \@              | The time, 12-hour, with AM/PM (''​+%l:​%M\ %p''​ format) ((''​date''​ command format)) ​ | ''​10:​42 PM''​ or ''​10:​42'' ​      |
-|  \A              | The time, 24-hour (''​+%k:​%M''​ format) ((''​date''​ command format)) ​FIXME            ​| ''​22:​42'' ​                      |+|  \A              | The time, 24-hour (''​+%k:​%M''​ format) ((''​date''​ command format)) ​                 | ''​22:​42'' ​                      |
 |  \h              | The host name                                                                      | ''​hostname'' ​                   | |  \h              | The host name                                                                      | ''​hostname'' ​                   |
 |  \H              | The full host name (with the domain name)                                          | ''​hostname.domain'' ​            | |  \H              | The full host name (with the domain name)                                          | ''​hostname.domain'' ​            |
Line 95: Line 95:
 ===== Links ===== ===== Links =====
  
 +  * [[bash:​tip_colors_and_formatting|Bash tips: Colors and formatting]]
   * [[http://​www.gnu.org/​software/​bash/​manual/​bashref.html#​Printing-a-Prompt|Bash manual: Printing a prompt]]   * [[http://​www.gnu.org/​software/​bash/​manual/​bashref.html#​Printing-a-Prompt|Bash manual: Printing a prompt]]
   * [[http://​www.funtoo.org/​wiki/​Prompt_Magic|Funtoo:​ Prompt magic]]   * [[http://​www.funtoo.org/​wiki/​Prompt_Magic|Funtoo:​ Prompt magic]]
  
  
 
bash/tip_customize_the_shell_prompt.txt · Last modified: 2017/09/01 12:24 (external edit)