<commit_before># insert sudo infront of command
insert_sudo () {
  [[ -z $BUFFER ]] && zle up-history
  if [[ $BUFFER != sudo\ * ]]; then
    zle beginning-of-line
    zle -U "sudo "
  fi
}
zle -N insert-sudo insert_sudo<commit_msg>Fix insert-sudo zsh plugin behavior.<commit_after># insert sudo infront of command
insert_sudo () {
  [[ -z $BUFFER ]] && zle up-history
  [[ $BUFFER != sudo\ * ]] && BUFFER="sudo $BUFFER"
  zle end-of-line
}

zle -N insert-sudo insert_sudo
{'fraction_non_alphanumeric': 0.15254237288135594, 'fraction_numerical': 0.0, 'mean_word_length': 3.3394495412844036, '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': '4398417', 'n_tokens_mistral': 182, 'n_tokens_neox': 168, 'n_words': 49}