<commit_before>function fish_prompt --description 'Write out the prompt'
    # Just calculate these once, to save a few cycles when displaying the prompt
        if not set -q __fish_prompt_hostname
                set -g __fish_prompt_hostname (hostname|cut -d . -f 1)
        end
        if not set -q __fish_prompt_normal
                set -g __fish_prompt_normal (set_color normal)
        end
        if not set -q __git_cb
                set __git_cb "["(set_color brown)(git branch ^/dev/null | grep \* | sed 's/* //')(set_color normal)"]"
        end
        if set -q VIRTUAL_ENV
            set VE_NAME "("(echo $VIRTUAL_ENV | awk -F/ '{print $NF}')")"
        else
            set VE_NAME ""
        end
        switch $USER
                case root
                     if not set -q __fish_prompt_cwd
                            if set -q fish_color_cwd_root
                                    set -g __fish_prompt_cwd (set_color $fish_color_cwd_root)
                            else
                                    set -g __fish_prompt_cwd (set_color $fish_color_cwd)
                            end
                     end
                     # replace pwd with prompt_pwd if you want the compressed version
                     printf '%s@%s:%s%s%s%s# ' $USER $__fish_prompt_hostname "$__fish_prompt_cwd" (pwd) "$__fish_prompt_normal" $__git_cb
                case '*'
                    if not set -q __fish_prompt_cwd
                            set -g __fish_prompt_cwd (set_color $fish_color_cwd)
                    end

                    printf '%s%s@%s [%s%s%s] %s\n-> ' $VE_NAME $USER $__fish_prompt_hostname "$__fish_prompt_cwd" (pwd) "$__fish_prompt_normal" $__git_cb
         end
end



set -g VIRTUAL_ENV_DISABLE_PROMPT 1
function workon --description "activate virtualenv"
     source ~/.venvs/$argv[1]/bin/activate.fish
end

function ack --description "ack"
     ack-grep $argv  --ignore-dir=migrations --ignore-dir=buid --nogroup
end
<commit_msg>add fish alias to activate erlang installation<commit_after>function fish_prompt --description 'Write out the prompt'
    # Just calculate these once, to save a few cycles when displaying the prompt
        if not set -q __fish_prompt_hostname
                set -g __fish_prompt_hostname (hostname|cut -d . -f 1)
        end
        if not set -q __fish_prompt_normal
                set -g __fish_prompt_normal (set_color normal)
        end
        if not set -q __git_cb
                set __git_cb "["(set_color brown)(git branch ^/dev/null | grep \* | sed 's/* //')(set_color normal)"]"
        end
        if set -q VIRTUAL_ENV
            set VE_NAME "("(echo $VIRTUAL_ENV | awk -F/ '{print $NF}')")"
        else
            set VE_NAME ""
        end
        switch $USER
                case root
                     if not set -q __fish_prompt_cwd
                            if set -q fish_color_cwd_root
                                    set -g __fish_prompt_cwd (set_color $fish_color_cwd_root)
                            else
                                    set -g __fish_prompt_cwd (set_color $fish_color_cwd)
                            end
                     end
                     # replace pwd with prompt_pwd if you want the compressed version
                     printf '%s@%s:%s%s%s%s# ' $USER $__fish_prompt_hostname "$__fish_prompt_cwd" (pwd) "$__fish_prompt_normal" $__git_cb
                case '*'
                    if not set -q __fish_prompt_cwd
                            set -g __fish_prompt_cwd (set_color $fish_color_cwd)
                    end

                    printf '%s%s@%s [%s%s%s] %s\n-> ' $VE_NAME $USER $__fish_prompt_hostname "$__fish_prompt_cwd" (pwd) "$__fish_prompt_normal" $__git_cb
         end
end



set -g VIRTUAL_ENV_DISABLE_PROMPT 1
function workon --description "activate virtualenv"
     source ~/.venvs/$argv[1]/bin/activate.fish
end

function eworkon --description "activate kerl installation"
     source ~/.kerl/inst/$argv[1]/activate.fish
end

function ack --description "ack"
     ack-grep $argv  --ignore-dir=migrations --ignore-dir=buid --nogroup
end

{'fraction_non_alphanumeric': 0.08422071636011616, 'fraction_numerical': 0.0016940948693126815, 'mean_word_length': 1.6425831202046035, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6903962', 'n_tokens_mistral': 1307, 'n_tokens_neox': 1224, 'n_words': 351}