Skip to content

shimtom/powerline-exitstatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Powerline Exitstatus

A Powerline segment for showing exit status.

It will show last exit status.

screenshot

Glossary

  • : exit success
  • : exit fail

Installation

pip install powerline-exitstatus

The Exitstatus segment a couple of custom highlight groups. You'll need to define those groups in your colorscheme, for example in .config/powerline/colorschemes/default.json:

{
    "groups": {
        "exit_status_success":        { "fg": "mediumgreen",     "bg": "gray2", "attrs": [] },
        "exit_status_fail":           { "fg": "brightestred",    "bg": "gray2", "attrs": [] }
  }
}

Then you can activate the Exitstatus segment by adding it to your segment configuration, for example in .config/powerline/themes/shell/default.json:

{
    "function": "powerline_exitstatus.exit_status",
    "priority": 10
}

If you want to show exit status only failed, you can enable by setting only_failed argument to true.

{
    "function": "powerline_exitstatus.exit_status",
    "args": {
        "only_failed": true
    }
}

License

Licensed under the MIT License.

About

A Powerline segment for showing exit status.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages