-#
-# Precmd
-#
-
-function prompt_precmd {
- git-info
-}
-
-#
-# Functions
-#
-
-function env_info_provider() { echo "%{%F{green}%}n/a"; }
-function env_info {
- echo "[%{%F{cyan}%}ENV%{%F{black}%} $(env_info_provider)%{%F{black}%}]"
-}
-
-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}"
-}
-
-function box_name {
- [ -f ~/.box-name ] && cat ~/.box-name || hostname -s
-}
-