A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/saravanabalagi/zsh-plugin-singularityenv below:

GitHub - saravanabalagi/zsh-plugin-singularityenv

Plugin provides singularityenv_prompt_info function which returns the current singularity environment name.

  1. Download the plugin

    git clone https://github.com/saravanabalagi/zsh-plugin-singularityenv $ZSH_CUSTOM/plugins/singularityenv
    
  2. Add to plugins in .zshrc file

    plugins=(
    	...
    	singularityenv
    )
    

Then launch a new terminal or source .zshrc in your current terminal.

This plugin exposes:

Using this you can build a theme as below:

base_prompt=PROMPT
PROMPT=$(singularityenv_prompt_info)"$base_prompt"

ZSH_THEME_SINGULARITYENV_PREFIX="%{$fg[blue]%}("
ZSH_THEME_SINGULARITYENV_SUFFIX=")%{$reset_color%}"

Please refer to the License file.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4