<commit_before>autoload colors && colors
## Author: <NAME>
## Adapted from <NAME>'s https://github.com/andyfleming/oh-my-zsh/blob/master/themes/af-magic.zsh-theme
## Updated: Sun Nov. 3rd 2013
##############################

## I just hacked this together pretty badly after migrating away from oh-my-zsh,
## so it not kinda sucks. Works though!

if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"

# Color vars
eval gray='$FG[237]'
eval orange='$FG[214]'
eval lightBlue='$FG[075]'
eval white='$FG[white]'

PROMPT='%{$reset_color%} $FG[032]%c `git_prompt_info` $FG[105]%(!.#.»)%{$reset_color%} '
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
RPS1='${return_code}'

NODE_VERSION=$(node --version)
PYTHON_VERSION=$(python -V 2>&1 | sed 's/.* \([0-9]\).\([0-9]\).\([0-9]\)/\1.\2.\3/')
RUBY_VERSION=$($HOME/.rvm/bin/rvm-prompt 2>&1 | sed 's/ruby-\([0-9]\).\([0-9]\).\([0-9]\)/\1.\2.\3/')

# Right prompt
RPROMPT='%{$white%}% [py: %{$FG[037]%}v$PYTHON_VERSION%{$reset_color%}%{$white%}] [node: %{$FG[070]%}$NODE_VERSION%{$reset_color%}%{$white%}] [ruby: %{$FG[009]%}v$RUBY_VERSION%{$reset_color%}%{$white%}] %{$FG[214]%}%n@%m%{$reset_color%}%'

## Python Virtualenv Hooks
###########################
# These need to be copied into the ~/.virtualenvs postactivate/postdeactive scripts
# TODO: Should have a script that does the above if the files are around

# postactivate
_OLD_RPROMPT="$RPROMPT"<commit_msg>Fixes RPrompt not reloading on env changes<commit_after>autoload colors && colors
## Author: <NAME>
## Adapted from <NAME>'s https://github.com/andyfleming/oh-my-zsh/blob/master/themes/af-magic.zsh-theme
## Updated: Sun Nov. 3rd 2013
##############################

## I just hacked this together pretty badly after migrating away from oh-my-zsh,
## so it not kinda sucks. Works though!

if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"

# Color vars
eval gray='$FG[237]'
eval orange='$FG[214]'
eval lightBlue='$FG[075]'
eval white='$FG[white]'

PROMPT='%{$reset_color%} $FG[032]%c `git_prompt_info` $FG[105]%(!.#.»)%{$reset_color%} '
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
RPS1='${return_code}'

# Right prompt
RPROMPT='%{$white%}% [py: %{$FG[037]%}v$(python -V 2>&1 | sed "s/.* \([0-9]\).\([0-9]\).\([0-9]\)/\1.\2.\3/")%{$reset_color%}%{$white%}] [node: %{$FG[070]%}$(node --version)%{$reset_color%}%{$white%}] [ruby: %{$FG[009]%}v$($HOME/.rvm/bin/rvm-prompt 2>&1 | sed "s/ruby-\([0-9]\).\([0-9]\).\([0-9]\)/\1.\2.\3/")%{$reset_color%}%{$white%}] %{$FG[214]%}%n@%m%{$reset_color%}%'

## Python Virtualenv Hooks
###########################
# These need to be copied into the ~/.virtualenvs postactivate/postdeactive scripts
# TODO: Should have a script that does the above if the files are around

# postactivate
_OLD_RPROMPT="$RPROMPT"
{'fraction_non_alphanumeric': 0.2848211184439041, 'fraction_numerical': 0.03959708232025009, 'mean_word_length': 5.682134570765661, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7080079', 'n_tokens_mistral': 1259, 'n_tokens_neox': 1114, 'n_words': 232}