Exit code


Displays the last exit code or that the last command failed based on the configuration.

Sample Configuration#

"type": "exit",
"style": "diamond",
"foreground": "#ffffff",
"background": "#00897b",
"leading_diamond": "",
"trailing_diamond": "\uE0B4",
"properties": {
"display_exit_code": false,
"always_enabled": true,
"error_color": "#e91e63",
"color_background": true,
"prefix": "<#193549>\uE0B0</> \uE23A"


  • display_exit_code: boolean - show or hide the exit code - defaults to true
  • always_enabled: boolean - always show the status - defaults to false
  • color_background: boolean - color the background or foreground when an error occurs - defaults to false
  • error_color: string color - color to use when an error occured
  • always_numeric: boolean - always display exit code as a number - defaults to false
  • success_icon: string - displays when there's no error and "always_enabled": true - defaults to ""
  • error_icon: string - displays when there's an error - defaults to ""