_ Bash Prompt Generator

Prompt Elements


  1. Date
  2. Date (formatted)
  3. Time (24-hour)
  4. Time (12-hour)
  5. Time (am/pm)
  6. Time (without seconds)
  7. Username
  8. Hostname (short)
  9. Hostname
  10. Working Directory
  11. Working Directory (Basename)
  12. Newline
  13. Carriage Return
  14. Bell
  15. Terminal
  16. Shell
  17. Bash Version
  18. Bash Release
  19. History Number
  20. Command Number
  21. Jobs
  22. Prompt Sign
  23. Exit Status
  24. Git Branch
  25. Advanced Git Prompt
  26. IP Address
  27. Command
  28. Environment Variable
  29. Set Window Title
  30. ~
  31. !
  32. ?
  33. @
  34. #
  35. $
  36. %
  37. ^
  38. &
  39. *
  40. (
  41. )
  42. {
  43. }
  44. [
  45. ]
  46. -
  47. _
  48. +
  49. =
  50. /
  51. \
  52. |
  53. ,
  54. .
  55. :
  56. ;
  57. "
  58. '
  59. <
  60. >
  61. Text

Your Prompt



You have not added any elements to your prompt yet.

Click on a prompt element to start.


Alternatively, you can paste your existing PS1 string to import it: