<commit_before>#!/usr/bin/env zsh

# FIXME: There are some things in .zprofile, check these.

source $HOME/.homesick/repos/runcom/rc.common

# homeshick completion needs to come before zsh compinit
fpath=($HOME/.homesick/repos/homeshick/completions $fpath)

source $HOME/.homesick/repos/antigen/antigen.zsh

antigen bundle robbyrussell/oh-my-zsh lib/

antigen bundle git

antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle nojhan/liquidprompt

# https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins-Overview
antigen bundle history-substring-search
antigen bundle gnu-utils
antigen bundle node
antigen bundle pip
antigen bundle python
antigen bundle rupa/z
antigen bundle ssh-agent
antigen bundle tmux
antigen bundle vagrant
antigen bundle virtualenv

#antigen bundle vi-mode
#antigen bundle npm

antigen bundle felixr/docker-zsh-completion
antigen bundle srijanshetty/zsh-pip-completion
antigen bundle lukechilds/zsh-better-npm-completion

if [[ $system == 'OSX' ]]; then
  antigen bundle brew
  antigen bundle brew-cask
  antigen bundle osx
elif [[ $system == 'Linux' ]]; then
  # pass
elif [[ $system == 'Cygwin' ]]; then
  antigen bundle cygwin
fi

antigen apply

# Tweak this value if necessary
export KEYTIMEOUT=20

# Global zsh key bindings
bindkey -M viins 'jk' vi-cmd-mode
bindkey "^?" backward-delete-char
bindkey "^W" backward-kill-word
bindkey "^H" backward-delete-char      # Control-h also deletes the previous char
bindkey "^U" kill-line
bindkey '^R' history-incremental-search-backward

# Fix esc behavior a la http://superuser.com/questions/516474/escape-not-idempotent-in-zshs-vi-emulation
noop () { }
zle -N noop<commit_msg>ud zsh<commit_after>#!/usr/bin/env zsh

# FIXME: There are some things in .zprofile, check these.

source $HOME/.homesick/repos/runcom/rc.common

# homeshick completion needs to come before zsh compinit
fpath=($HOME/.homesick/repos/homeshick/completions $fpath)

source $HOME/.homesick/repos/antigen/antigen.zsh

antigen bundle robbyrussell/oh-my-zsh lib/
antigen bundle git
antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle nojhan/liquidprompt

# https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins-Overview
antigen bundle colored-man-pages
antigen bundle colorize
antigen bundle docker
antigen bundle extract # x swiss army knife
antigen bundle gitignore
antigen bundle gnu-utils
antigen bundle gpg-agent
antigen bundle history # h, hsi
antigen bundle history-substring-search
antigen bundle mvn
antigen bundle node
antigen bundle pip
antigen bundle python
antigen bundle rupa/z
antigen bundle ssh-agent
antigen bundle tmux
antigen bundle vagrant
antigen bundle vagrant
antigen bundle virtualenv
antigen bundle web-search # h, hsi

#antigen bundle vi-mode
#antigen bundle npm

#antigen bundle felixr/docker-zsh-completion
#antigen bundle srijanshetty/zsh-pip-completion
antigen bundle lukechilds/zsh-better-npm-completion

if [[ $system == 'OSX' ]]; then
  antigen bundle brew
  antigen bundle brew-cask
  antigen bundle osx
elif [[ $system == 'Linux' ]]; then
  # pass
elif [[ $system == 'Cygwin' ]]; then
  antigen bundle cygwin
fi

antigen apply

# Tweak this value if necessary
export KEYTIMEOUT=20

# Global zsh key bindings
bindkey -M viins 'jk' vi-cmd-mode
bindkey "^?" backward-delete-char
bindkey "^W" backward-kill-word
bindkey "^H" backward-delete-char      # Control-h also deletes the previous char
bindkey "^U" kill-line
bindkey '^R' history-incremental-search-backward

# Fix esc behavior a la http://superuser.com/questions/516474/escape-not-idempotent-in-zshs-vi-emulation
noop () { }
zle -N noop
{'fraction_non_alphanumeric': 0.0939798420049033, 'fraction_numerical': 0.004358485426314356, 'mean_word_length': 4.710730948678072, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '25100', 'n_tokens_mistral': 1296, 'n_tokens_neox': 1225, 'n_words': 360}