<commit_before># color support for ls and grep
alias grep='grep --color=auto'
if [[ "$OSTYPE" == "darwin"* ]] || [[ "$OSTYPE" == "freebsd"* ]]; then
  alias ls='ls -G'
else
  alias ls='ls --color=auto'
fi

# killz <program name> -- Kills all programs with the given program name
alias killz='killall -9 '

# Make file manipulation verbose
alias rm='rm -v'
alias cp='cp -v'
alias mv='mv -v'

# Print name of shell currently being used
alias shell='ps -p $$ -o comm='

# What else would you use ps for
alias psg="ps aux | grep"

# Enable "up" for previous commands
alias sml='rlwrap sml'
alias math='rlwrap MathKernel'
alias coin='rlwrap coin'

# Invoke gcc with commonly used options
alias cc='gcc -Wall -W -ansi -pedantic -O2 '

# Show all leaks
alias valgrind-leak='valgrind --leak-check=full --show-reachable=yes'

# Shortand ls options
if [ -x "$(command -v exa)" ]; then
  alias ls='exa'
fi
alias l='ls'
alias la='ls -a'
alias ll='ls -lh'
alias lal='ls -alh'
alias lh='ls -d .*'
alias lhl='ls -lhd .*'

# Moving around
alias cdd="cd ../"
alias cddd="cd ../../"
alias cdddd="cd ../../../"
alias cddddd="cd ../../../../"
alias cdddddd="cd ../../../../../"
alias cddddddd="cd ../../../../../../"
alias cdddddddd="cd ../../../../../../../"
alias cdddddddd="cd ../../../../../../../../"
alias back="cd -"

# Alternate navigation scheme
alias ..="cd ../"
alias ...="cd ../../"
alias ....="cd ../../../"
alias .....="cd ../../../../"
alias ......="cd ../../../../../"
alias .......="cd ../../../../../../"
alias ........="cd ../../../../../../../"
alias ........="cd ../../../../../../../../"

if [[ "$OSTYPE" == "darwin"* ]]; then
  alias trash="cd $USER_HOME/.Trash"
  alias 213="cd $USER_HOME/GoogleDrive/CMU/F17/15-213"
  alias 210="cd $USER_HOME/GoogleDrive/CMU/F17/15-210"
fi

# See how much RAM Chrome is using (always helpful)
alias chromemem="ps -ev | grep -i chrome | awk '{print \$12}' | awk '{for(i=1;i<=NF;i++)s+=\$i}END{print s}'"
alias chromemem="echo 'Chrome is using $(chromemem)% of memory.'"

# General use stuff
alias mine="sudo chown $(whoami)"
if [ -x "$(command -v nvim)" ]; then
  alias vim="nvim"
fi
alias vi="vim"
alias vvim="\vim"

if [ -x "$(command -v mvim)" ]; then
  alias mvim="mvim -v"
fi

alias tmux="tmux -2"
<commit_msg>shell: Added 150 folder alias for Mac<commit_after># color support for ls and grep
alias grep='grep --color=auto'
if [[ "$OSTYPE" == "darwin"* ]] || [[ "$OSTYPE" == "freebsd"* ]]; then
  alias ls='ls -G'
else
  alias ls='ls --color=auto'
fi

# killz <program name> -- Kills all programs with the given program name
alias killz='killall -9 '

# Make file manipulation verbose
alias rm='rm -v'
alias cp='cp -v'
alias mv='mv -v'

# Print name of shell currently being used
alias shell='ps -p $$ -o comm='

# What else would you use ps for
alias psg="ps aux | grep"

# Enable "up" for previous commands
alias sml='rlwrap sml'
alias math='rlwrap MathKernel'
alias coin='rlwrap coin'

# Invoke gcc with commonly used options
alias cc='gcc -Wall -W -ansi -pedantic -O2 '

# Show all leaks
alias valgrind-leak='valgrind --leak-check=full --show-reachable=yes'

# Shortand ls options
if [ -x "$(command -v exa)" ]; then
  alias ls='exa'
fi
alias l='ls'
alias la='ls -a'
alias ll='ls -lh'
alias lal='ls -alh'
alias lh='ls -d .*'
alias lhl='ls -lhd .*'

# Moving around
alias cdd="cd ../"
alias cddd="cd ../../"
alias cdddd="cd ../../../"
alias cddddd="cd ../../../../"
alias cdddddd="cd ../../../../../"
alias cddddddd="cd ../../../../../../"
alias cdddddddd="cd ../../../../../../../"
alias cdddddddd="cd ../../../../../../../../"
alias back="cd -"

# Alternate navigation scheme
alias ..="cd ../"
alias ...="cd ../../"
alias ....="cd ../../../"
alias .....="cd ../../../../"
alias ......="cd ../../../../../"
alias .......="cd ../../../../../../"
alias ........="cd ../../../../../../../"
alias ........="cd ../../../../../../../../"

if [[ "$OSTYPE" == "darwin"* ]]; then
  alias trash="cd $USER_HOME/.Trash"
  alias 150="cd $USER_HOME/GoogleDrive/CMU/S17/15-150"
  alias 213="cd $USER_HOME/GoogleDrive/CMU/F17/15-213"
  alias 210="cd $USER_HOME/GoogleDrive/CMU/F17/15-210"
fi

# See how much RAM Chrome is using (always helpful)
alias chromemem="ps -ev | grep -i chrome | awk '{print \$12}' | awk '{for(i=1;i<=NF;i++)s+=\$i}END{print s}'"
alias chromemem="echo 'Chrome is using $(chromemem)% of memory.'"

# General use stuff
alias mine="sudo chown $(whoami)"
if [ -x "$(command -v nvim)" ]; then
  alias vim="nvim"
fi
alias vi="vim"
alias vvim="\vim"

if [ -x "$(command -v mvim)" ]; then
  alias mvim="mvim -v"
fi

alias tmux="tmux -2"

{'fraction_non_alphanumeric': 0.26346782988004364, 'fraction_numerical': 0.014176663031624863, 'mean_word_length': 2.45071482317532, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 6, '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': '5780284', 'n_tokens_mistral': 1796, 'n_tokens_neox': 1653, 'n_words': 513}