dynamic terminal output
The output of the docker ps
command is super useful but can be unwieldy. Especially on a smaller terminal window.
Turns out there’s a cool builtin called tput
that provides env info on a terminal session.
Here’s a “better” docker ps
for a bash profile:
Now typing dockerps
as one word will provide more readable output based on the terminal size.