uses the terminal size to display search output, add -notrunc 

and fix a small bug in resize

try:

    docker search redis

and

    docker search -notrunc redis