<commit_before># https://github.com/tadija/AEDotFiles
# Copyright (c) <NAME> 2015-2019
# Licensed under the MIT license. See LICENSE file.

function getShellFile() {
  if [ -n "$ZSH_VERSION" ]; then
    echo ".zshrc"
  elif [ -n "$BASH_VERSION" ]; then
    echo ".bash_profile"
  fi
}

alias reload="source ~/$(getShellFile)"
alias update="brew update && brew upgrade && brew cask upgrade && brew cleanup && mas upgrade"
alias restore="tmux attach || { (while ! tmux run-shell ~/.tmux/plugins/tmux-resurrect/scripts/restore.sh; do sleep 0.2; done)& tmux ; }"

alias dfe="subl $df && fork $df"
alias dfu="cd $df && gitsy && cd -"

alias ..="cd .."
alias cdh="cd $HOME"
alias ls='ls -GFh'
alias ll="ls -lo"
alias la="ll -a"
alias grep="grep --color=auto"
alias rmd="rm -rf"
alias preview="fzf --preview 'bat --color \"always\" {}'"
alias help="tldr"
alias rng="ranger"

alias show="defaults write com.apple.finder AppleShowAllFiles true && killall Finder"
alias hide="defaults write com.apple.finder AppleShowAllFiles false && killall Finder"

alias off="pmset sleepnow"
alias lock='/System/Library/CoreServices/"Menu Extras"/User.menu/Contents/Resources/CGSession -suspend'
alias zap='brew rmtree'

if [ -n "$ZSH_VERSION" ]; then
  # case-insensitive globbing
  setopt NO_CASE_GLOB
  # change directory without cd
  setopt AUTO_CD
  # show timestamp and elapsed time of the command
  setopt EXTENDED_HISTORY
  # share history across multiple zsh sessions
  setopt SHARE_HISTORY
  # append to history
  setopt APPEND_HISTORY
  # adds commands as they are typed, not at shell exit
  setopt INC_APPEND_HISTORY
  # do not store duplications
  setopt HIST_IGNORE_DUPS
  # removes blank lines from history
  setopt HIST_REDUCE_BLANKS
  # zsh auto correction
  setopt CORRECT
  setopt CORRECT_ALL
fi

if [ -n "$ZSH_VERSION" ]; then
  autoload -Uz compinit && compinit
  autoload -U colors && colors
fi
<commit_msg>Add `.` alias<commit_after># https://github.com/tadija/AEDotFiles
# Copyright (c) <NAME> 2015-2019
# Licensed under the MIT license. See LICENSE file.

function getShellFile() {
  if [ -n "$ZSH_VERSION" ]; then
    echo ".zshrc"
  elif [ -n "$BASH_VERSION" ]; then
    echo ".bash_profile"
  fi
}

alias reload="source ~/$(getShellFile)"
alias update="brew update && brew upgrade && brew cask upgrade && brew cleanup && mas upgrade"
alias restore="tmux attach || { (while ! tmux run-shell ~/.tmux/plugins/tmux-resurrect/scripts/restore.sh; do sleep 0.2; done)& tmux ; }"

alias dfe="subl $df && fork $df"
alias dfu="cd $df && gitsy && cd -"

alias .="open ."
alias ..="cd .."
alias cdh="cd $HOME"
alias ls='ls -GFh'
alias ll="ls -lo"
alias la="ll -a"
alias grep="grep --color=auto"
alias rmd="rm -rf"
alias preview="fzf --preview 'bat --color \"always\" {}'"
alias help="tldr"
alias rng="ranger"

alias show="defaults write com.apple.finder AppleShowAllFiles true && killall Finder"
alias hide="defaults write com.apple.finder AppleShowAllFiles false && killall Finder"

alias off="pmset sleepnow"
alias lock='/System/Library/CoreServices/"Menu Extras"/User.menu/Contents/Resources/CGSession -suspend'
alias zap='brew rmtree'

if [ -n "$ZSH_VERSION" ]; then
  # case-insensitive globbing
  setopt NO_CASE_GLOB
  # change directory without cd
  setopt AUTO_CD
  # show timestamp and elapsed time of the command
  setopt EXTENDED_HISTORY
  # share history across multiple zsh sessions
  setopt SHARE_HISTORY
  # append to history
  setopt APPEND_HISTORY
  # adds commands as they are typed, not at shell exit
  setopt INC_APPEND_HISTORY
  # do not store duplications
  setopt HIST_IGNORE_DUPS
  # removes blank lines from history
  setopt HIST_REDUCE_BLANKS
  # zsh auto correction
  setopt CORRECT
  setopt CORRECT_ALL
fi

if [ -n "$ZSH_VERSION" ]; then
  autoload -Uz compinit && compinit
  autoload -U colors && colors
fi

{'fraction_non_alphanumeric': 0.11856881692347872, 'fraction_numerical': 0.005223295899712719, 'mean_word_length': 4.140939597315437, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1502576', 'n_tokens_mistral': 1343, 'n_tokens_neox': 1306, 'n_words': 413}