#!/bin/sh
# shellcheck disable=SC2139

unalias -a

alias r='reload'
alias rr='rreload'
alias rrr='rrreload'
alias p='ping euandre.org -c 3'
alias l='ls -lahF --color'
alias c='tmux send-keys -R \; clear-history'
alias o='open'
alias mail='mail -a "Content-Type: text/plain; charset=UTF-8" -aFrom:eu@euandre.org'

alias m='mbsync EuAndreh & mbsync EuAndrehXYZ & mbsync Nubank & wait && notmuch new'
alias mm='msmtp-queue -r'

alias mk='make clean && make dev-check'
alias wmk='aux/with-container "make clean && make dev-check"'
alias tt='mk && wmk'
alias todos='make public && open public/TODOs.html'
alias valgrind='valgrind --show-error-list=yes --show-leak-kinds=all --leak-check=full --track-origins=yes --error-exitcode=1'

alias grep='grep --color=auto'
alias diff='diff --color=auto'
alias make='make -e'
alias less='less -R'
alias watch='watch --color '
alias sbcl='rlwrap sbcl'
alias sqlite='rlwrap sqlite3'
alias guile='rlwrap guile'

alias man='MANWIDTH=$((COLUMNS > 80 ? 80 : COLUMNS)) man'
