Skip to content

Instantly share code, notes, and snippets.

@lsd
Last active November 24, 2015 11:01
Show Gist options
  • Save lsd/82d827927002aea97836 to your computer and use it in GitHub Desktop.
Save lsd/82d827927002aea97836 to your computer and use it in GitHub Desktop.
my misc zsh hhighlighter snippets

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment