<commit_before># Aliases
alias zshconfig="$EDITOR ~/.zshrc"
alias dotfiles="$EDITOR ~/.dotfiles"
alias ohmyzsh="$EDITOR ~/.oh-my-zsh"

alias reload!='. ~/.zshrc'

alias mkvirtualenv3="mkvirtualenv -p $(which python3)"

alias use_xcode="sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer"

# Quick way to rebuild the Launch Services database and get rid
# of duplicates in the Open With submenu.
alias fixopenwith='/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user'

if hash tmux 2> /dev/null; then
    alias tma='tmux attach -t'
    alias tmad='tmux attach -d -t'
    alias tms='tmux new-session -s'
    alias tml='tmux list-sessions'
    alias tmksv='tmux kill-server'
    alias tmkss='tmux kill-session -t'
fi

# Make sure we have vanilla grep
alias grep='\grep'
# grepc can be fun grep
alias grepc='grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn}'

alias pd='basename $(pwd)'

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

alias du='du -kh'       # Makes a more readable output.
alias df='df -kTh'

alias ls='ls -hFG'         # Colors, size units, differentiate files/folders/symlinks
alias ll='ls -alF'         # long list ls
alias lr='ls -lR'          # recursive ls
alias tree='tree -Csu'     # nice alternative to 'recursive ls'

# Suffix aliases
alias -s txt=$EDITOR
alias -s md=$EDITOR
alias -s html=$EDITOR
alias -s js=$EDITOR
alias -s jpeg='open -a Preview'
alias -s jpg=jpeg
alias -s png='open -a Preview'


# For teaching bash, don't load customizations
alias teachbash='bash --noprofile --rcfile /etc/bashrc'

alias www='browser-sync start --server'
alias httpserver=www

alias jrnl='vi $(date +%F).md'


# Find running copies of vi/vim
alias vimrunning='pgrep -l "^vim?$"'<commit_msg>Zsh: Remove file extension alias for js files.<commit_after># Aliases
alias zshconfig="$EDITOR ~/.zshrc"
alias dotfiles="$EDITOR ~/.dotfiles"
alias ohmyzsh="$EDITOR ~/.oh-my-zsh"

alias reload!='. ~/.zshrc'

alias mkvirtualenv3="mkvirtualenv -p $(which python3)"

alias use_xcode="sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer"

# Quick way to rebuild the Launch Services database and get rid
# of duplicates in the Open With submenu.
alias fixopenwith='/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user'

if hash tmux 2> /dev/null; then
    alias tma='tmux attach -t'
    alias tmad='tmux attach -d -t'
    alias tms='tmux new-session -s'
    alias tml='tmux list-sessions'
    alias tmksv='tmux kill-server'
    alias tmkss='tmux kill-session -t'
fi

# Make sure we have vanilla grep
alias grep='\grep'
# grepc can be fun grep
alias grepc='grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn}'

alias pd='basename $(pwd)'

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

alias du='du -kh'       # Makes a more readable output.
alias df='df -kTh'

alias ls='ls -hFG'         # Colors, size units, differentiate files/folders/symlinks
alias ll='ls -alF'         # long list ls
alias lr='ls -lR'          # recursive ls
alias tree='tree -Csu'     # nice alternative to 'recursive ls'

# Suffix aliases
alias -s txt=$EDITOR
alias -s md=$EDITOR
alias -s html=$EDITOR
alias -s jpeg='open -a Preview'
alias -s jpg=jpeg
alias -s png='open -a Preview'


# For teaching bash, don't load customizations
alias teachbash='bash --noprofile --rcfile /etc/bashrc'

alias www='browser-sync start --server'
alias httpserver=www

alias jrnl='vi $(date +%F).md'


# Find running copies of vi/vim
alias vimrunning='pgrep -l "^vim?$"'
{'fraction_non_alphanumeric': 0.1341827053402006, 'fraction_numerical': 0.001626457034426674, 'mean_word_length': 3.798439531859558, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2434169', 'n_tokens_mistral': 1350, 'n_tokens_neox': 1271, 'n_words': 415}