<commit_before># aliases (hooray!)

# interactive (confirmation prompt)
for i in rm mv cp;
  { alias $i="$i -iv"; }

# verbose
for i in rmdir mkdir rename;
  { alias $i="$i -v"; }

# let me use my aliases when delaying commands
for i in xargs watch sudo;
  { alias $i="$i "; }

# add readline support
for i in pacmd;
  { alias $i="rlwrap $i"; }

# shortcuts for common args

alias caly='cal `date +%Y`'

alias diffpatch='diff -uprN'
alias diffgit='git diff --no-index'
alias diffgitcw='git diff --no-index --color-words=.'

alias ftp='/usr/bin/ftp'; # kerberos ftp bothers me

# sometimes my finger can't let go of the shift key used to make the pipe
alias Wc=wc

# ls
alias ls='ls --color=auto'
alias ll='ls -l'
alias lf='ll -aF'
alias lh='lf -h'
alias lft='lf --time-style=full-iso'

# show child process hierarchy with indentation
alias ps='ps -H'

  # Make `dict` use a PAGER.
  dict () {
    command dict "$@" | less
  }<commit_msg>Always send ag through PAGER<commit_after># aliases (hooray!)

# interactive (confirmation prompt)
for i in rm mv cp;
  { alias $i="$i -iv"; }

# verbose
for i in rmdir mkdir rename;
  { alias $i="$i -v"; }

# let me use my aliases when delaying commands
for i in xargs watch sudo;
  { alias $i="$i "; }

# add readline support
for i in pacmd;
  { alias $i="rlwrap $i"; }

# shortcuts for common args

alias caly='cal `date +%Y`'

alias diffpatch='diff -uprN'
alias diffgit='git diff --no-index'
alias diffgitcw='git diff --no-index --color-words=.'

alias ftp='/usr/bin/ftp'; # kerberos ftp bothers me

# sometimes my finger can't let go of the shift key used to make the pipe
alias Wc=wc

# ls
alias ls='ls --color=auto'
alias ll='ls -l'
alias lf='ll -aF'
alias lh='lf -h'
alias lft='lf --time-style=full-iso'

# show child process hierarchy with indentation
alias ps='ps -H'

# Always use a pager.
for i in dict;
  $i () { command $i "$@" | $PAGER; }

alias ag='ag --pager=$PAGER'
{'fraction_non_alphanumeric': 0.146875, 'fraction_numerical': 0.0, 'mean_word_length': 3.552132701421801, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1830677', 'n_tokens_mistral': 743, 'n_tokens_neox': 715, 'n_words': 266}