<commit_before>if _command_exists peco; then
    function _peco-select-history() {
        local tac
        if _command_exists tac; then
            tac="tac"
        else
            tac="tail -r"
        fi
        BUFFER=$(\history -n 1 | eval $tac | awk '!a[$0]++' | peco --query "$LBUFFER")
        CURSOR=$#BUFFER
    }
    zle -N _peco-select-history
    bindkey '^r' _peco-select-history

    function _peco-ssh-select-host() {
        local host
        echo "$LBUFFER"
        host=$(grep -iE '^host' ~/.ssh/config | awk '{print $2}' | peco)
        if [ "$host" != '' ]; then
            ssh $@ $host
        fi
    }
    alias ssh-peco=_peco-ssh-select-host
fi
<commit_msg>Fix peco.zsh<commit_after>if _command_exists peco; then
    function _peco-select-history() {
        local tac
        if _command_exists tac; then
            tac="tac"
        else
            tac="tail -r"
        fi
        BUFFER=$(\history -n 1 | eval $tac | awk '!a[$0]++' | peco --query "$LBUFFER")
        CURSOR=$#BUFFER
    }
    zle -N _peco-select-history
    bindkey '^r' _peco-select-history

    function _peco-ssh-select-host() {
        local host
        host=$(grep -iE '^host' ~/.ssh/config | awk '{print $2}' | peco)
        if [ "$host" != '' ]; then
            ssh $@ $host
        fi
    }
    alias ssh-peco=_peco-ssh-select-host
fi

{'fraction_non_alphanumeric': 0.14550853749072012, 'fraction_numerical': 0.004454342984409799, 'mean_word_length': 1.7679671457905544, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4387547', 'n_tokens_mistral': 491, 'n_tokens_neox': 468, 'n_words': 113}