Skip to content

Instantly share code, notes, and snippets.

@naaman

naaman/less_tail.zsh

Created Mar 30, 2015
Embed
What would you like to do?
Tail a Pipe Using Less
less_tail() {
tmp_file=`mktemp -t lesstail`
$@ > $tmp_file &
less +F $tmp_file
kill %
rm $tmp_file
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment