X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/3cfb240230ff88aa9a222a12926bd475d4e9eebf..14a899db10b88c5e4800e34dc208a0ce3b624dcd:/zsh/modules/prompt.zsh diff --git a/zsh/modules/prompt.zsh b/zsh/modules/prompt.zsh index a305178..0ab1e0d 100644 --- a/zsh/modules/prompt.zsh +++ b/zsh/modules/prompt.zsh @@ -23,17 +23,20 @@ function env_info { function python_info { pythoninfo=`cat ~/.tool-versions | rg python | cut -d ' ' -f 2` + pythoninfo=${ASDF_PYTHON_VERSION:-$pythoninfo} venv="${VIRTUAL_ENV##*/}" echo "%{%F{green}%}py%{%F{black}%} ${pythoninfo:-no}@${venv:-default}" } function ruby_info { rubyinfo=`cat ~/.tool-versions | rg ruby | cut -d ' ' -f 2` + rubyinfo=${ASDF_RUBY_VERSION:-$rubyinfo} echo "%{%F{red}%}rb%{%F{black}%} ${rubyinfo:-no}" } function node_info { nodeinfo=`cat ~/.tool-versions | rg nodejs | cut -d ' ' -f 2` + nodeinfo=${ASDF_NODEJS_VERSION:-$nodeinfo} echo "%{%F{yellow}%}js%{%F{black}%} ${nodeinfo:-no}" }