mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
Use ":t" instead of 'basename'
This commit is contained in:
parent
22cfcc537f
commit
1ae94bada1
1 changed files with 1 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
function spackenv_prompt_info(){
|
||||
[[ -n ${SPACK_ENV} ]] || return
|
||||
export SPACK_ENV_PROMPT=$( basename $SPACK_ENV )
|
||||
export SPACK_ENV_PROMPT=${SPACK_ENV:t}
|
||||
echo "${ZSH_THEME_SPACKENV_PREFIX=(}${SPACK_ENV:t:gs/%/%%}${ZSH_THEME_SPACKENV_SUFFIX=)}"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue