oh-my-bash/themes/powerline-plain
Israel Antonio Rosales Laguan ec1921490f Themes: screenshots added (#116)
* [feat] THEMES.md: Add screenshots

What?:
- Add screens for all themes
- Add THEMES.md to showcase all screens

Breaking Changes? None

* fix #114

What?:
- Add screenshots to be added to wiki

Breaking Changes? None
2019-12-31 15:00:02 +07:00
..
powerline-plain-dark.png Themes: screenshots added (#116) 2019-12-31 15:00:02 +07:00
powerline-plain.base.sh Improve oh-my-bash functionality 2017-10-10 18:07:01 +07:00
powerline-plain.theme.sh Improve oh-my-bash functionality 2017-10-10 18:07:01 +07:00
README.md Improve oh-my-bash functionality 2017-10-10 18:07:01 +07:00

Powerline Theme

A colorful theme, where shows a lot information about your shell session.

Provided Information

  • Current path
  • Current username and hostname
  • Current time
  • An indicator when connected by SSH
  • An indicator when sudo has the credentials cached (see the sudo manpage for more info about this)
  • An indicator when the current shell is inside the Vim editor
  • Battery charging status (depends on the [../../plugins/battery/battery.plugin.sh](battery plugin))
  • SCM Repository status (e.g. Git, SVN)
  • The current Python environment (Virtualenv, venv, and Conda are supported) in use
  • The current Ruby environment (rvm and rbenv are supported) in use
  • Last command exit code (only shown when the exit code is greater than 0)

Configuration

This theme is pretty configurable, all the configuration is done by setting environment variables.

User Information

By default, the username and hostname are shown, but you can change this behavior by setting the value of the following variable:

POWERLINE_PROMPT_USER_INFO_MODE="sudo"

For now, the only supported value is sudo, which hides the username and hostname, and shows an indicator when sudo has the credentials cached. Other values have no effect at this time.

Clock Format

You can change the format using the following variable:

THEME_CLOCK_FORMAT="%H:%M:%S"

The time/date is printed by the date command, so refer to its man page to change the format.

Segment Order

The contents of the prompt can be "reordered", all the "segments" (every piece of information) can take any place. The currently available segments are:

  • battery
  • clock
  • cwd
  • in_vim
  • python_venv
  • ruby
  • scm
  • user_info

A variables can be defined to set the order of the prompt segments:

POWERLINE_PROMPT="user_info scm python_venv ruby cwd"

The example values above are the current default values, but if you want to remove anything from the prompt, simply remove the "string" that represents the segment from the variable.