Themes - fab1o/pump-zsh GitHub Wiki

Pump-zsh

Pump-zsh provides lightweight, customizable themes for Zsh — including options for Oh My Zsh and Oh My Posh.


Available Themes

  1. Pump (Oh My Zsh)
  2. Pump Git Prompt (Oh My Zsh)
  3. Pump Hybrid (Oh My Zsh)
  4. Pump (Oh My Posh)
  5. Customize Your Own Theme

1. Pump (Oh My Zsh Theme)

pump

To enable this theme:

  1. Set the theme in your ~/.zshrc:

    ZSH_THEME="pump"
    
  2. Add pump to your list of plugins:

    plugins=(pump)
    

2. Pump Git Prompt (Oh My Zsh Theme)

pump-git-prompt

To enable the pump theme with Git prompt enhancements:

  1. Set the theme in your ~/.zshrc:

    ZSH_THEME="pump-git-prompt"
    
  2. Add pump and git-prompt to your list of plugins:

    plugins=(git-prompt pump)
    

3. Pump Hybrid (Oh My Zsh Theme)

pump-hybrid

To enable the pump theme with Git prompt enhancements:

  1. Set the theme in your ~/.zshrc:

    ZSH_THEME="pump-hybrid"
    
  2. Add pump and git-prompt to your list of plugins:

    plugins=(git-prompt pump)
    

4. Pump (Oh My Posh Theme)

pump-posh

To use Pump with Oh My Posh:

  1. Add the following to your ~/.zshrc:

    if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then
      eval "$(oh-my-posh init zsh --config $ZSH/plugins/pump/pump.omp.json)"
    fi
    
  2. Add pump to your plugins:

    plugins=(pump)
    

4. Customize Your Own Theme

Pump-zsh exports environment variables that can be used in your prompt customization:

CURRENT_PUMP_SHORT_NAME # indicates the current set project
PUMP_TIME_TOOK # time took to run last command

To build your own theme:

  • Explore how Pump's built-in themes use these variables.
  • Adapt the logic to fit your custom style or prompt framework.

Be sure to include pump in your plugins list:

plugins=(pump)