mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-07-30 03:15:21 +08:00
* Add spackenv plugin to handle Spack environment * Use ":t" instead of 'basename'
6 lines
202 B
Bash
6 lines
202 B
Bash
function spackenv_prompt_info(){
|
|
[[ -n ${SPACK_ENV} ]] || return
|
|
export SPACK_ENV_PROMPT=${SPACK_ENV:t}
|
|
echo "${ZSH_THEME_SPACKENV_PREFIX=(}${SPACK_ENV:t:gs/%/%%}${ZSH_THEME_SPACKENV_SUFFIX=)}"
|
|
}
|