Skip to content
/ eriner Public
forked from zimfw/eriner

A Zim fork of the Powerline-inspired agnoster prompt theme.

License

Notifications You must be signed in to change notification settings

tcojean/eriner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

eriner

A fork of the Powerline-inspired agnoster theme. In addition to the base eriner, the last command's execution time is printed like in asciiship.

The aim of this theme is to only show you relevant information. Like most prompts, it will only show git information when in a git working directory. However, it goes a step further: everything from the current user and hostname to whether the last call exited with an error to whether background jobs are running in this shell will all be displayed automatically when appropriate.

What does it show?

  • Status segment:
    • when there was an error.
    • when you're root.
    • when there are background jobs.
    • r when you're in a ranger spawned shell.
    • Python venv indicator.
    • username@hostname when in a ssh session or when root.
  • Short working directory segment.
  • Git segment (background color varies if working tree is clean or dirty):
    • Current branch name, or commit short hash when in 'detached HEAD' state.
    • ± when in a dirty working tree.
  • How long the last command took to execute, if greater than 2 seconds.

Settings

The background color for each segment can be customized with an environment variable. If the variable is not defined, the respective default value is used.

Variable Description Default value
STATUS_COLOR Status segment color black
PWD_COLOR Working directory segment color cyan
CLEAN_COLOR Clean git working tree segment color green
DIRTY_COLOR Dirty git working tree segment color yellow

Requirements

In order for this theme to render correctly, a font with Powerline symbols is required. A simple way to install a font with Powerline symbols is to follow the instructions here.

Requires Zim's git-info module to show git information.

About

A Zim fork of the Powerline-inspired agnoster prompt theme.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%