<commit_before>go-prompt
=========

A prompt generator based on [powerline-shell](https://github.com/milkbikis/powerline-shell). It only supports bash right now because that is what I use.

![screenshot](https://raw.github.com/brandonvfx/go-prompt/master/screenshot.png)

Why?
----

I really like the powerline-shell prompt, I used it every day for almost a year. So when I was starting to learn Go I wanted my first *real* project to be something I used everyday and required learning a bunch of different things. So re-writing powerline-shell seemed like a *good* idea.


Install
-------

`go get github.com/brandonvfx/go-prompt`


Usage
-----

Add the following to your `.bashrc` (assuming $GOPATH/bin is in your path):

    function _update_ps1() {
        export PS1="$(go-prompt $? 2> /dev/null)"
    }

    export PROMPT_COMMAND="_update_ps1"


Config
------

Save the default config to a file (~/.go_prompt)<commit_msg>Adding releases link<commit_after>go-prompt
=========

A prompt generator based on [powerline-shell](https://github.com/milkbikis/powerline-shell). It only supports bash right now because that is what I use.

![screenshot](https://raw.github.com/brandonvfx/go-prompt/master/screenshot.png)

Why?
----

I really like the powerline-shell prompt, I used it every day for almost a year. So when I was starting to learn Go I wanted my first *real* project to be something I used everyday and required learning a bunch of different things. So re-writing powerline-shell seemed like a *good* idea.


Install
-------

`go get github.com/brandonvfx/go-prompt`

or

Download the binary from the releases page: https://github.com/brandonvfx/go-prompt/releases


Usage
-----

Add the following to your `.bashrc` (assuming $GOPATH/bin is in your path):

    function _update_ps1() {
        export PS1="$(go-prompt $? 2> /dev/null)"
    }

    export PROMPT_COMMAND="_update_ps1"


Config
------

Save the default config to a file (~/.go_prompt)
{'fraction_non_alphanumeric': 0.12200102092904543, 'fraction_numerical': 0.00408371618172537, 'mean_word_length': 3.5057471264367814, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3966864', 'n_tokens_mistral': 632, 'n_tokens_neox': 594, 'n_words': 222}