<commit_before># Add this to your .bashrc
_complete_gh ()
{
        COMPREPLY=()
        if [[ $COMP_CWORD -eq 1 ]]; then
          comp_arr=$(ls $HOME/src/github.com;\
            ls $HOME/src/github.com/$GITHUB)
        elif [[ $COMP_CWORD -eq 2 ]]; then
          local user=${COMP_WORDS[COMP_CWORD-1]}
          comp_arr=$(ls $HOME/src/github.com/$user)
        else
          return 0
        fi
        cur="${COMP_WORDS[COMP_CWORD]}"
        COMPREPLY=( $(compgen -W "${comp_arr}" -- $cur))
        return 0
}
complete -F _complete_gh gh<commit_msg>Ensure bash completion works with different base dir<commit_after>GH_BASE_DIR=${GH_BASE_DIR:-$HOME/src}

# Add this to your .bashrc
_complete_gh ()
{
        COMPREPLY=()
        if [[ $COMP_CWORD -eq 1 ]]; then
          comp_arr=$(ls $GH_BASE_DIR/github.com;\
            ls $GH_BASE_DIR/github.com/$GITHUB)
        elif [[ $COMP_CWORD -eq 2 ]]; then
          local user=${COMP_WORDS[COMP_CWORD-1]}
          comp_arr=$(ls $GH_BASE_DIR/github.com/$user)
        else
          return 0
        fi
        cur="${COMP_WORDS[COMP_CWORD]}"
        COMPREPLY=( $(compgen -W "${comp_arr}" -- $cur))
        return 0
}
complete -F _complete_gh gh
{'fraction_non_alphanumeric': 0.14261884904086738, 'fraction_numerical': 0.008340283569641367, 'mean_word_length': 2.1662269129287597, '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': '1260947', 'n_tokens_mistral': 430, 'n_tokens_neox': 414, 'n_words': 90}