alias cdiff="colordiff" [ -x "$(which gpg2)" ] && alias clean-gpg="for a in `gpg2 -k | sed -rn 's/pub +[a-z0-9]+\/(0x[0-9A-Fa-f]+).*/\1/p'`; do gpg2 --quiet --no-tty --edit-key $a clean save; done;" alias diff="diff -W $(( $(tput cols) - 2))" alias bz2c='bzip2 --best' alias gzc='gzip --best --no-name' alias xzc='xz --best --extreme' alias extip='curl -LR1fs --compressed https://ipinfo.io/ | jq -Sc' alias jjar='java -jar' alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' alias pygmentize='pygmentize -O style=solarizeddark' alias ra='ranger' alias urldecode='python3 -c "import sys, urllib.parse as ul; [sys.stdout.write(ul.unquote_plus(l)) for l in sys.stdin]"' alias urlencode='python3 -c "import sys, urllib.parse as ul; [sys.stdout.write(ul.quote_plus(l)) for l in sys.stdin]"' function mkcdir () { mkdir -p -- "$1" && cd -P -- "$1" } function chrooted() { ROOT_MP="$(awk '$5=="/" {print $1}'