mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Add spackenv plugin to handle Spack environment
This commit is contained in:
parent
01433503c2
commit
22cfcc537f
2 changed files with 22 additions and 0 deletions
5
plugins/spackenv/spackenv.plugin.zsh
Normal file
5
plugins/spackenv/spackenv.plugin.zsh
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
function spackenv_prompt_info(){
|
||||
[[ -n ${SPACK_ENV} ]] || return
|
||||
export SPACK_ENV_PROMPT=$( basename $SPACK_ENV )
|
||||
echo "${ZSH_THEME_SPACKENV_PREFIX=(}${SPACK_ENV:t:gs/%/%%}${ZSH_THEME_SPACKENV_SUFFIX=)}"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue