<commit_before>zmodload -F zsh/stat b:zstat

# Global Aliases
alias -g G='| grep -i --'
alias -g P='2>&1 | $PAGER'

# Suffix Aliases
alias -s htm="$BROWSER"
alias -s html="$BROWSER"
alias -s yaml='ccat'
alias -s yml='ccat'
alias -s json='jq .'
alias -s xml='ccat'
alias -s py='python'
alias -s jar='java -jar'
alias -s war='java -jar'
alias -s md='ql'
alias -s csv='ql'

alias fs='stat -c "%s Bytes"' # File Size
alias map="xargs -n1"
alias editvar='vared'
alias ccat='vimcat'
alias dk='desk .'
alias s='find . -iname'
alias cpp='rsync -WavP --human-readable --progress' # copy with progress
alias help='run-help'

# ls
alias l='exa -al --git'
alias hidden='print -lr .*'

# tmux
alias tmux='tmux -2 -f $XDG_CONFIG_HOME/tmux/tmux.conf'
alias ta='tmux attach -d'
alias tnew='tmux new -s'

# opening projects
alias i='idea'
alias vim="nvim"
alias v="vim"
alias dottime='time zsh -ic true'
alias cddot="cd $DOTFILES"
alias doti="i $DOTFILES"
alias dotc="code $DOTFILES"
alias confc="code $XDG_CONFIG_HOME"
alias confcd="cd $XDG_CONFIG_HOME"
alias brewc="code $HOMEBREW_PREFIX/etc"
alias zshc="code $ZDOTDIR"
alias localrc="vim $ZDOTDIR/.zlocalrc"

# files and directories
alias rename='noglob zmv -W'

# network
alias ip='dig +short myip.opendns.com @resolver1.opendns.com' # external ip
alias iip='ifdata -pN' # internal ip, needs interface

# docker
alias dr="docker"
alias drr="docker run -it --rm"
alias drc="docker-compose"
alias dl='docker ps -lq'
alias dps='docker ps'
alias di='docker images'
alias dip='docker inspect --format "{{ .NetworkSettings.IPAddress }}"'
alias docker-images-tree='docker run --rm -v /var/run/docker.sock:/var/run/docker.sock nate/dockviz images -t'

# git
alias g='git'
alias gup='() { cd "$1" && gitup }'
alias diffg='git diff --color-words --no-index'
alias dclone='clone -d'

# Url functions
alias urlencode='node -e "console.log(encodeURIComponent(process.argv[1]))"'
alias urldecode='node -e "console.log(decodeURIComponent(process.argv[1]))"'
alias html2text='w3m -dump -T text/html'

# composer/drush
alias composer="php -n =composer"
alias ev='drush php-eval'
alias lsa='drush site-alias'
alias dq='drush sql-query'
alias xdrush='XDEBUG_CONFIG="idekey=PHPSTORM" drush'

# meta
alias list-aliases='() { alias | grep -E ${1-.} | vimcat | fzf-tmux }'
alias list-functions='() { print -l ${(ok)functions} | grep -E ${1-.} | vimcat | fzf-tmux }'

# named directories, allows for e.g. ~config
c="$XDG_CONFIG_HOME" conf=$c
<commit_msg>Add container-transform<commit_after>zmodload -F zsh/stat b:zstat

# Global Aliases
alias -g G='| grep -i --'
alias -g P='2>&1 | $PAGER'

# Suffix Aliases
alias -s htm="$BROWSER"
alias -s html="$BROWSER"
alias -s yaml='ccat'
alias -s yml='ccat'
alias -s json='jq .'
alias -s xml='ccat'
alias -s py='python'
alias -s jar='java -jar'
alias -s war='java -jar'
alias -s md='ql'
alias -s csv='ql'

alias fs='stat -c "%s Bytes"' # File Size
alias map="xargs -n1"
alias editvar='vared'
alias ccat='vimcat'
alias dk='desk .'
alias s='find . -iname'
alias cpp='rsync -WavP --human-readable --progress' # copy with progress
alias help='run-help'

# ls
alias l='exa -al --git'
alias hidden='print -lr .*'

# tmux
alias tmux='tmux -2 -f $XDG_CONFIG_HOME/tmux/tmux.conf'
alias ta='tmux attach -d'
alias tnew='tmux new -s'

# opening projects
alias i='idea'
alias vim="nvim"
alias v="vim"
alias dottime='time zsh -ic true'
alias cddot="cd $DOTFILES"
alias doti="i $DOTFILES"
alias dotc="code $DOTFILES"
alias confc="code $XDG_CONFIG_HOME"
alias confcd="cd $XDG_CONFIG_HOME"
alias brewc="code $HOMEBREW_PREFIX/etc"
alias zshc="code $ZDOTDIR"
alias localrc="vim $ZDOTDIR/.zlocalrc"

# files and directories
alias rename='noglob zmv -W'

# network
alias ip='dig +short myip.opendns.com @resolver1.opendns.com' # external ip
alias iip='ifdata -pN' # internal ip, needs interface

# docker
alias dr="docker"
alias drr="docker run -it --rm"
alias drc="docker-compose"
alias dl='docker ps -lq'
alias dps='docker ps'
alias di='docker images'
alias dip='docker inspect --format "{{ .NetworkSettings.IPAddress }}"'
alias docker-images-tree='docker run --rm -v /var/run/docker.sock:/var/run/docker.sock nate/dockviz images -t'
alias container-transform='docker run --rm -v $(pwd):/data/ micahhausler/container-transform'

# git
alias g='git'
alias gup='() { cd "$1" && gitup }'
alias diffg='git diff --color-words --no-index'
alias dclone='clone -d'

# Url functions
alias urlencode='node -e "console.log(encodeURIComponent(process.argv[1]))"'
alias urldecode='node -e "console.log(decodeURIComponent(process.argv[1]))"'
alias html2text='w3m -dump -T text/html'

# composer/drush
alias composer="php -n =composer"
alias ev='drush php-eval'
alias lsa='drush site-alias'
alias dq='drush sql-query'
alias xdrush='XDEBUG_CONFIG="idekey=PHPSTORM" drush'

# meta
alias list-aliases='() { alias | grep -E ${1-.} | vimcat | fzf-tmux }'
alias list-functions='() { print -l ${(ok)functions} | grep -E ${1-.} | vimcat | fzf-tmux }'

# named directories, allows for e.g. ~config
c="$XDG_CONFIG_HOME" conf=$c

{'fraction_non_alphanumeric': 0.16832076220722508, 'fraction_numerical': 0.004763795156808257, 'mean_word_length': 4.6617977528089884, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3076105', 'n_tokens_mistral': 2017, 'n_tokens_neox': 1943, 'n_words': 550}