<commit_before># 色設定
if type dircolors > /dev/null 2>&1; then
  eval $(dircolors $HOME/.zsh/custom/dircolors.256dark)
elif type gdircolors > /dev/null 2>&1; then
  eval $(gdircolors $HOME/.zsh/custom/dircolors.256dark)
fi
if [ -n "$LS_COLORS" ]; then
  zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
fi

# ls
if type gls > /dev/null 2>&1; then
  alias ls='gls --color=auto'
else
  alias ls='ls --color=auto'
fi
alias ll='ls -l'

alias gsh='git show'
compdef _git gsh=git-show
alias gdc='git diff --cached'
compdef _git gdc=git-diff

function git-review() {
  local N=$(git log --pretty=format:"%H %h" | grep -n $1 | cut -d : -f 1)
  git log --decorate --stat --reverse -p -$N
}
alias greview='git-review'

# autojumpした時はtmuxのwindow名をディレクトリー名に変更する
function jump-and-tmux-rename-window() {
  \j "$@"
  tmux rename-window ${PWD:t}
}
alias j='jump-and-tmux-rename-window'

alias s='spring stop && spring rails c'
alias c='rails c'
alias db='rails db'<commit_msg>Fix typo<commit_after># 色設定
if type dircolors > /dev/null 2>&1; then
  eval $(dircolors $HOME/.zsh/custom/dircolors.256dark)
elif type gdircolors > /dev/null 2>&1; then
  eval $(gdircolors $HOME/.zsh/custom/dircolors.256dark)
fi
if [ -n "$LS_COLORS" ]; then
  zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
fi

# ls
if type gls > /dev/null 2>&1; then
  alias ls='gls --color=auto'
else
  alias ls='ls --color=auto'
fi
alias ll='ls -l'

alias gsh='git show'
compdef _git gsh=git-show
alias gdc='git diff --cached'
compdef _git gdc=git-diff

function git-review() {
  local N=$(git log --pretty=format:"%H %h" | grep -n $1 | cut -d : -f 1)
  git log --decorate --stat --reverse -p -$N
}
alias greview='git-review'

# autojumpした時はtmuxのwindow名をディレクトリー名に変更する
function jump-and-tmux-rename-window() {
  \j "$@"
  tmux rename-window ${PWD:t}
}
alias j='jump-and-tmux-rename-window'

alias s='spring stop && spring rails s'
alias c='rails c'
alias db='rails db'
{'fraction_non_alphanumeric': 0.1703896103896104, 'fraction_numerical': 0.014545454545454545, 'mean_word_length': 3.8636363636363638, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '5849467', 'n_tokens_mistral': 825, 'n_tokens_neox': 804, 'n_words': 210}