ipaddr
Use ip command to list active network interface addresses.
ip -br a
catwhere
Show the contents of the script that can be found in path with where.
function catwhere() { cat $(where $1) }
datelast
Function to output TZ-agnostic ISO datetime for the last weekday (and optionally time.)
function datelast() { date +%Y-%m-%dT%H:%M --date "last $*" }
yesterday
Function to output TZ-agnostic ISO datetime for “yesterday.”
function yesterday() { date +%Y-%m-%dT%H:%M --date "yesterday $*" }
duhere
Return the disk usage for the folders in current directory.
du -h --max-depth=1 ./ | sort -h
numfhs
Count number of file descriptors used by each PID and sort by total.
function numfhs() {lsof | awk '{print $2}' | uniq -c | sort -n}
showcal
Show calendar for current month from Remind.
remind -c ~/.reminders
xc
Shorthand xclip command to specifiy the clipboard target
function xc() {xclip -sel clip}