https://github.com/paoloantinori/hhighlighter
Highlight owned by me, mega/giga byte+ and file extension
ls -lrS | h -n '[0-9]+?\.?[0-9]+?[MG]' `whoami` '\.[^.]*[a-z0-9]*$
To bind this to F2 (represented as ^[OQ'
) in zsh:
bindkey -s '^[OQ' "ls -lrS ...\n"