<commit_before>set -x EDITOR vim
set -x LC_ALL 'en_US.UTF-8'
set -x LESS '-F -g -i -R -w -X -z-3'
set -x LESS_ADVANCED_PREPROCESSOR 1
set -x VISUAL $EDITOR

umask 022

set fish_greeting

if test (uname -s) = Darwin
    set HOMEBREW_PREFIX $HOMEBREW_PREFIX
else
    set HOMEBREW_PREFIX /home/linuxbrew/.linuxbrew
end

if test -x $HOMEBREW_PREFIX/bin/brew
    set -x HOMEBREW_INSTALL_CLEANUP 1
    eval ($HOMEBREW_PREFIX/bin/brew shellenv)
end

if type -q lesspipe
    set -x LESSOPEN '| lesspipe %s'
    set -x LESSCLOSE 'lesspipe %s %s'
end
if type -q lesspipe.sh
    set -x LESSOPEN '| lesspipe %s'
end

set -x CDPATH .
for path in $HOME/Development/Projects $HOME/Development/Excel/Projects
    if test -d $path
        set -x CDPATH $CDPATH $path
    end
end

for path in $HOME/bin $HOME/.cargo/bin $HOMEBREW_PREFIX/opt/python/libexec $HOME/.composer/vendor/bin
    if test -d $path
        fish_add_path $path
    end
end

if test -d $HOMEBREW_PREFIX/opt/go/libexec; and test -d $HOME/Development/Go
    set -x GOPATH $HOME/Development/Go
    set -x GOROOT $HOMEBREW_PREFIX/opt/go/libexec
    fish_add_path $HOME/Development/Go/bin
end

if type -q open
    set -x BROWSER open
end

if type -q fzf
    set -x FZF_DEFAULT_COMMAND "rg --files --hidden --follow --glob '!.git'"
end

if type -q rbenv
    set -x RUBY_CONFIGURE_OPTS --with-jemalloc
    rbenv init - fish | source
end

if type -q direnv
    direnv hook fish | source
end

for path in $HOME/.config/fish/config.d/*.fish
    source $path
end

if status is-interactive
    if type -q starship
        starship init fish | source
    end

    if test $TERM_PROGRAM = 'iTerm.app'
        set BASE16_SHELL_PATH $HOME/.config/base16-shell
        source $BASE16_SHELL_PATH/profile_helper.fish
        source $HOME/.iterm2_shell_integration.fish
    end

    function set_terminal_color --on-event fish_prompt
        if test (background status) = light
            base16-default-light
            set -x THEME default-light
        else
            base16-default-dark
            set -x THEME default-dark
        end
    end
end<commit_msg>Make base16 cross-platform in fish<commit_after>set -x EDITOR vim
set -x LC_ALL 'en_US.UTF-8'
set -x LESS '-F -g -i -R -w -X -z-3'
set -x LESS_ADVANCED_PREPROCESSOR 1
set -x VISUAL $EDITOR

umask 022

set fish_greeting

if test (uname -s) = Darwin
    set HOMEBREW_PREFIX $HOMEBREW_PREFIX
else
    set HOMEBREW_PREFIX /home/linuxbrew/.linuxbrew
end

if test -x $HOMEBREW_PREFIX/bin/brew
    set -x HOMEBREW_INSTALL_CLEANUP 1
    eval ($HOMEBREW_PREFIX/bin/brew shellenv)
end

if type -q lesspipe
    set -x LESSOPEN '| lesspipe %s'
    set -x LESSCLOSE 'lesspipe %s %s'
end
if type -q lesspipe.sh
    set -x LESSOPEN '| lesspipe %s'
end

set -x CDPATH .
for path in $HOME/Development/Projects $HOME/Development/Excel/Projects
    if test -d $path
        set -x CDPATH $CDPATH $path
    end
end

for path in $HOME/bin $HOME/.cargo/bin $HOMEBREW_PREFIX/opt/python/libexec $HOME/.composer/vendor/bin
    if test -d $path
        fish_add_path $path
    end
end

if test -d $HOMEBREW_PREFIX/opt/go/libexec; and test -d $HOME/Development/Go
    set -x GOPATH $HOME/Development/Go
    set -x GOROOT $HOMEBREW_PREFIX/opt/go/libexec
    fish_add_path $HOME/Development/Go/bin
end

if type -q open
    set -x BROWSER open
end

if type -q fzf
    set -x FZF_DEFAULT_COMMAND "rg --files --hidden --follow --glob '!.git'"
end

if type -q rbenv
    set -x RUBY_CONFIGURE_OPTS --with-jemalloc
    rbenv init - fish | source
end

if type -q direnv
    direnv hook fish | source
end

for path in $HOME/.config/fish/config.d/*.fish
    source $path
end

if status is-interactive
    if type -q starship
        starship init fish | source
    end

    if test "$TERM_PROGRAM" = 'iTerm.app'
        source $HOME/.iterm2_shell_integration.fish
    end

    set BASE16_SHELL_PATH $HOME/.config/base16-shell
    source $BASE16_SHELL_PATH/profile_helper.fish

    function set_terminal_color --on-event fish_prompt
        if test (light-or-dark) = light
            base16-default-light
            set -x THEME default-light
        else
            base16-default-dark
            set -x THEME default-dark
        end
    end
end
{'fraction_non_alphanumeric': 0.08950617283950617, 'fraction_numerical': 0.009021842355175688, 'mean_word_length': 2.499169435215947, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5268668', 'n_tokens_mistral': 1638, 'n_tokens_neox': 1543, 'n_words': 468}