-#
-# 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=`asdf current python | sed 's/ */ /g' | cut -d ' ' -f 2`
- if [[ -z "$VIRTUAL_ENV" ]]; then
- venv="default"
- else
- venv="${VIRTUAL_ENV##*/}"
- fi
- echo "%{%F{green}%}py%{%F{black}%} ${pythoninfo}@${venv}"
-}
-
-function ruby_info {
- rubyinfo=`asdf current ruby | sed 's/ */ /g' | cut -d ' ' -f 2`
- echo "%{%F{red}%}rb%{%F{black}%} ${rubyinfo}"
-}
-
-function node_info {
- nodeinfo=`asdf current nodejs | sed 's/ */ /g' | cut -d ' ' -f 2`
- echo "%{%F{yellow}%}js%{%F{black}%} ${nodeinfo}"
-}
-
-function box_name {
- [ -f ~/.box-name ] && cat ~/.box-name || hostname -s
-}
-