<commit_before>### bashrc.readline.sh

#  vi-mode: vi(m) keyboard shortcuts
set -o vi

#  .         -- insert last argument (command mode)
bind -m vi-command ".":insert-last-argument

## emulate default bash
#  <ctrl> l  -- clear screen
bind -m vi-insert "\C-l.":clear-screen
#  <ctrl> a  -- move to beginning of line (^)
bind -m vi-insert "\C-a.":beginning-of-line
#  <ctrl> e  -- move to end of line ($)
bind -m vi-insert "\C-e.":end-of-line
#  <ctrl> w  -- delete last word
bind -m vi-insert "\C-w.":backward-kill-word<commit_msg>BUG: readline config should only load w/ bash<commit_after>### bashrc.readline.sh

#  vi-mode: vi(m) keyboard shortcuts
set -o vi

if [ -n "$BASH_VERSION" ]; then
    #  .         -- insert last argument (command mode)
    bind -m vi-command ".":insert-last-argument

    ## emulate default bash
    #  <ctrl> l  -- clear screen
    bind -m vi-insert "\C-l.":clear-screen
    #  <ctrl> a  -- move to beginning of line (^)
    bind -m vi-insert "\C-a.":beginning-of-line
    #  <ctrl> e  -- move to end of line ($)
    bind -m vi-insert "\C-e.":end-of-line
    #  <ctrl> w  -- delete last word
    bind -m vi-insert "\C-w.":backward-kill-word
fi
{'fraction_non_alphanumeric': 0.16907391673746813, 'fraction_numerical': 0.0, 'mean_word_length': 2.4144927536231884, 'pattern_counts': {'":': 10, '<': 11, '<?xml version=': 0, '>': 11, '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': '3688127', 'n_tokens_mistral': 444, 'n_tokens_neox': 431, 'n_words': 131}